summaryrefslogtreecommitdiff
path: root/pygments/lexers
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge pull request #1375 from kubo39/dlang-add-FILE_FULL_PATHMatthäus G. Chajdas2020-02-091-3/+3
|\ \ \ | |/ / |/| | D: add __FILE_FULL_PATH__
| * | D: add __FILE_FULL_PATH__Hiroki Noda2020-01-301-3/+3
| | |
* | | Adds the walrus operator to the Python3 lexer.Brett Slatkin2020-02-021-1/+1
| | | | | | | | | | | | | | | | | | | | | - 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 when absolute paths are used (#1378)Catatonic2020-02-021-1/+1
| | | | | | | | | | | | | | | | | | * Fix glob patterns for directives like Include. * removing unnecessary escaping.
* | | add filename for pipenv & poetrytzing2020-02-013-4/+4
|/ /
* | Add sieve as alias for Sieve.Matthäus G. Chajdas2020-01-242-1/+2
| |
* | Update CHANGES, language list, and regenerate mapfile.Matthäus G. Chajdas2020-01-241-1/+1
| |
* | Add lexer for LLVM's MIR format (#1361)Daniel Sanders2020-01-242-5/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Correct lexing of Idris compiler directives (#1363)Molly Miller2020-01-191-1/+1
|/ | | | | | | | | | | * 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
* Add a PEG (Parsing Expression Grammar) lexer (#1336)Michael Wayne Goodman2020-01-162-1/+59
| | | | | * Add a PEG (Parsing Expression Grammar) lexer * Add PEG to doc/languages.rst and indicate version
* Lacking keywords were added to the Idris lexer.Denis Buzdalov2020-01-161-0/+1
|
* Merge pull request #1357 from rahulghangas/masterMatthäus G. Chajdas2020-01-121-7/+7
|\ | | | | Adding keywords for Chapel
| * Adding keywords for Chapel according to release 1.20.0 and spec version 0.988Rahul Ghangas2020-01-131-7/+7
| |
* | Merge pull request #1309 from pygments/671/upsuper/webidlMatthäus G. Chajdas2020-01-122-0/+298
|\ \ | |/ |/| Add Web IDL lexer
| * Merge branch 'master' into 671/upsuper/webidlMatthäus G. Chajdas2020-01-0730-204/+1221
| |\ | | | | | | | | | This allows us to resolve the merge conflict properly.
| * | Fix a few regexlint warnings in the WebIDL lexer.Matthäus G. Chajdas2020-01-071-2/+2
| | |
| * | Add versionadded, fix conflict.Matthäus G. Chajdas2020-01-071-0/+2
| | |
| * | Add keyword suffix for builtin typesXidorn Quan2019-11-281-1/+2
| | |
| * | Break infinite loop around operation stateXidorn Quan2019-11-281-1/+1
| | |
| * | Fix long long typeXidorn Quan2019-11-281-1/+1
| | |
| * | Simplify regex for single line commentsXidorn Quan2019-11-281-2/+2
| | |
| * | Add suffix for all keyword regexsXidorn Quan2019-11-281-27/+31
| | |
| * | Add Web IDL lexerXidorn Quan2019-11-282-0/+291
| | |
* | | Update c_cpp.py to adds support for C++20 keywordsHubert Gruniaux2020-01-051-2/+3
| |/ |/| | | The soon C++20 newcomer standard will introduce lots of new keywords like `constinit`, `co_yield` (for courotines), `import` or`module` (for modules, however these are special identifiers instead of real keywords), etc...
* | Add Sieve lexer (#1257)sblondon2020-01-042-0/+69
| | | | | | | | Add Sieve lexer
* | Update CHANGES & map file.Matthäus G. Chajdas2020-01-041-1/+1
| | | | | | | | Perl6/Raku update adds new file extensions, so regenerate the file mapping.
* | Merge pull request #1344 from hankache/masterMatthäus G. Chajdas2020-01-041-69/+167
|\ \ | | | | | | Update Raku (Perl 6) keywords, classes, methods, etc.
| * | Update Raku (Perl 6) keywords, classes, methods, etc.Naoum Hankache2019-12-251-69/+167
| | |
* | | haskell: Fix highlighting of promoted type operators (#1347)Xia Li-yao2019-12-301-0/+1
|/ / | | | | | | | | | | | | * haskell: Fix highlighting of promoted type operators Fixes issue #527 Patch originally written by paamayim
* | Fix directives that have 0 argumentscatatonicprime2019-12-191-2/+1
| |
* | all: fixup http->https for github, pypi, pocoo etc URLsGeorg Brandl2019-12-106-7/+7
| |
* | make regexes consistentGeorg Brandl2019-12-091-1/+1
| |
* | dmesg lexer refinements:Georg Brandl2019-12-093-62/+52
| | | | | | | | | | | | * move to textfmts.py where other logfiles are * fix detection of dmesg -x (heuristic "unknown" state must be last) * change styles for debug/warn lines
* | This commit adds a lexer for linux kernel logs as outputted by `dmesg`martijn@msi.localhost2019-12-092-0/+60
| | | | | | | | | | | | | | | | It supports output from `dmesg`, in that case it highlights based on keywords in the line It can also highlight `dmesg -x` output. In that case it uses the loglevels from the kernel to highlight the lines.
* | tests: remove special skip cases for random_input test caseGeorg Brandl2019-12-093-4/+8
| |
* | Mosel: style fixes, add changelog entry etcGeorg Brandl2019-12-082-402/+408
| |
* | Update operators and punctuation. Reorder '::' and ':', remove redundant ↵J. C. Müller2019-12-081-2/+2
| | | | | | | | ':', remove '=='.
* | Add all functions of mmxprs, mmsystem and mmjobs.jcmuel2019-12-081-66/+342
| |
* | Add keywords, define types and operators. Remove parameters. Delete test ↵jcmuel2019-12-081-24/+25
| | | | | | | | file with incompatible license.
* | Add Mosel lexer.German Riano2019-12-082-0/+166
| |
* | Fix valid_name regex for SLexer (#1333)Georg Brandl2019-12-081-1/+1
|\ \ | | | | | | Fix valid_name regex for SLexer
| * | Fix valid_name regex for SLexerNikolay Korolev2019-12-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes #1331 All modifications to regex: 1. Delete 2 useless non-capturing groups 2. Variables can not start with underscore (_) 3. Only letters, dot (.) and underscore (_) can go after first dot (.) in name 4. Name from only one symbol dot (.) is possible
* | | Fixing parsing of numeric literalsgusthoff2019-12-061-1/+1
|/ / | | | | | | Reasoning: Ada allows formats such as 2#1111_0000# and 2#1111.0000#
* | More fixes to MATLAB lexer. (#1328)Georg Brandl2019-12-061-4/+5
|\ \ | | | | | | More fixes to MATLAB lexer.
| * | More fixes to MATLAB lexer.Antony Lee2019-12-061-4/+5
| | |
* | | Parse HTTP status-line even when reason-phrase not included. (#1322)Georg Brandl2019-12-061-3/+3
|\ \ \ | | | | | | | | Parse HTTP status-line even when reason-phrase not included.
| * | | Make the optional reason-phrase regexp group non-capturing.Jakub Roztocil2019-12-031-3/+3
| | | |
| * | | Parse HTTP status-line even when reason-phrase not included.Jakub Roztocil2019-12-021-2/+2
| | | | | | | | | | | | | | | | Background: https://github.com/jakubroztocil/httpie/issues/811
* | | | USD: post-merge nitsGeorg Brandl2019-12-062-78/+39
| | | |
* | | | Add USD lexer (#1290)Georg Brandl2019-12-063-0/+237
|\ \ \ \ | | | | | | | | | | Add USD lexer