| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Remove a '__main__' handler from __init__.py.
|
| |\
| |
| | |
sql lexer: Add temporal support keywords
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
SQL:2011 introduced support for temporal databases[1] via new keywords to
create and manage temporal tables. This patchset adds these new keywords to
the sql lexer.
One concrete example of these feature is the temporal tables support in
MariaDB[2]. As evident from the code listing on that page, the syntax
highlighting for these keywords is not as widespread as expected (I wouldn't
be surprised if code listing on that page ultimately use pygments for syntax
highlighting !)
[1] https://en.wikipedia.org/wiki/SQL:2011
[2] https://mariadb.com/kb/en/temporal-data-tables/
|
| |\ \
| | |
| | | |
Fix #1247 by looking up in both HKLM and HKCU.
|
| | | |
| | |
| | |
| | |
| | | |
* Fix an issue raised in the review -- don't raise None no matter what.
* Remove a few variables to make the control flow easier to understand
|
| | |/
| |
| |
| |
| |
| | |
This is slightly different from the code posted inside the issue:
* Use finally to close the registry key no matter what
* Don't use break, but return directly on the first hit
|
| |\ \
| |/
|/| |
Add Windows CI support & fix tests on Windows
|
| | |
| |
| |
| |
| |
| |
| | |
This fixes three test failures on Windows:
* Two due to incorrect handling of : (on Windows, multiple : can
be part of a path.)
* One due to newline differences
|
| |/ |
|
| | |
|
| | |
|
| |\ |
|
| | |
| |
| |
| |
| | |
Put it into a new category, Keyword.Removed, so it's not completely
gone.
|
| | |\
|/ /
| |
| | |
https://github.com/kubo39/pygments into kubo39-dlang-remove-typedef-from-keywords
|
| | |
| |
| |
| | |
ref: https://dlang.org/deprecate.html#typedef
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Remove Python 2 compatibility
* remove 2/3 shims in pygments.util
* update setup.py metadata
* Remove unneeded object inheritance.
* Remove unneeded future imports.
|
| | | |
|
| |\ \
| | |
| | | |
Python f-strings: highlight expressions in curly braces
|
| | | |
| | |
| | |
| | | |
Fixes #1228
|
| | | | |
|
| |\ \ \
| | | |
| | | | |
Add support for the MiniScript embedded scripting language.
|
| | | | | |
|
| | | | | |
|
| |\ \ \ \
| |/ / /
|/| | | |
Move Python 3-only exceptions into PythonLexer
|
| |/ / / |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | | |
* Support for *.eex files in ElixirLexer
* update lexer mapping
|
| | | |
| | |
| | |
| | |
| | |
| | | |
* Fix link
* here too
|
| | | |
| | |
| | |
| | | |
Update Csound built-ins for v6.14.0
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
alanhamlett/regex-search-does-not-work-with-multiline
Multiline flag does not work with re.match
|
| | |/ / |
|
| |\ \ \
| |/ /
|/| | |
D: add __FILE_FULL_PATH__
|
| | | | |
|
| |\ \ \
| | | |
| | | | |
Adds the walrus operator to the Python3 lexer.
|
| |/ / /
| | |
| | |
| | |
| | |
| | |
| | | |
- The walrus operator, also known as assignment expressions, was introduced in Python 3.8
- Moves the Token.Operator matching root above Token.Punctuation so the walrus operator takes precedence
- Includes a test to make sure this behavior doesn't regress since it's sensitive to the order of expressions
- Fixes #1381
|
| | | |
| | |
| | |
| | |
| | |
| | | |
* Fix glob patterns for directives like Include.
* removing unnecessary escaping.
|
| | | | |
|
| | | | |
|
| |\ \ \
| |/ /
|/| | |
Add support for python dependency management file
|
| |/ / |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
MIR is a human readable serialization format that's used to represent LLVM's
machine specific intermediate representation. It allows LLVM's developers to
see the state of the compilation process at various points, as well as test
individual pieces of the compiler. Our documentation for the format can be
found at https://llvm.org/docs/MIRLangRef.html.
Adding a lexer for this format will allow the LLVM documentation to contain
syntax highlighted examples of LLVM-MIR. Two lexers are included in this
change. 'llvm-mir' lexes the overall document format and delegates to 'llvm' and
'llvm-mir-body' as appropriate. 'llvm-mir-body' lexes the contents of the 'body:'
attribute and can be used directly to syntax highlight code examples without
including the document boilerplate.
Since the 'llvm-mir' lexer delegates to the 'llvm' lexer at times, this change
also adds the 'immarg' and 'willreturn' keywords to the 'llvm' lexer as these
were missing.
|
| |/
|
|
|
|
|
|
|
|
|
| |
* Fix lexing of Idris compiler pragmas.
The regex for capturing Idris compiler pragmas did not separate the leading
percent sign from the disjunction of compiler directives correctly, which caused
issues such as "import" or "namespace" keywords to be mishighlighted, due to
confusion with the "%import" and "%name" compiler pragmas.
* Add unit test for Idris compiler directive lexing
|