summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | java multiline highlighting based on issue 1858 (#2132)VishalN72022-05-103-0/+237
| | | | | | Co-authored-by: Chung Tai <chungtai456@gmail.com>
* | Correcting path to Python in call to regexlint (#2122)Gustavo A. Hoffmann2022-05-061-1/+1
| |
* | Ada 2022: introducing support for new syntactic additions (#2121)Gustavo A. Hoffmann2022-04-293-1/+216
| | | | | | | | | | * Ada 2022: adding support for at sign * Ada 2022: adding support for square brackets * Ada 2022: introducing test for new syntactic additions
* | Prepare for next release.Matthäus G. Chajdas2022-04-241-0/+4
| |
* | Bump version number for release.2.12.0Matthäus G. Chajdas2022-04-241-1/+1
| |
* | Update CHANGES.Matthäus G. Chajdas2022-04-241-2/+6
| |
* | Add more CSS property names (fixes #2113).Matthäus G. Chajdas2022-04-244-129/+625
| | | | | | | | | | This change also adds a script to regenerate the list of CSS properties from the W3C source if needed.
* | Initial commit for MCFunction Lexer + tests (#2107)Rit2022-04-2418-0/+3750
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial commit for MCFunction Lexer + tests * Apply suggestions from code review Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr> * added docstring info + fix for run ... command * remove string ending Error tokens * not working - refactor in-progress * fixed: generic property * Update pygments/lexers/mcfunction.py Co-authored-by: Georg Brandl <georg@python.org> * apply some fixes from comments * Update pygments/lexers/mcfunction.py Co-authored-by: Georg Brandl <georg@python.org> * spacing * updated tests and applied more suggestions * fixed comment regex, passes tests Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr> Co-authored-by: Georg Brandl <georg@python.org>
* | Futhark: add missing tokens (#2118)Troels Henriksen2022-04-243-43/+100
| | | | | | | | Adds recognition of 'def'/'type^'/'type~' keywords and adds some missing characters to the regexes for identifiers and punctuation.
* | Moving Ada Lexer to standalone module (#2117)Gustavo A. Hoffmann2022-04-245-139/+252
| | | | | | | | | | | | | | | | | | * Moving Ada Lexer to standalone module * Editorial change: correcting underline * Moving keywords and standard types to separate Ada builtins file * Adding separate AdaLexer to the list
* | Fix #632. (#2101)Matthäus G. Chajdas2022-04-2466-268/+215
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix #632. The doc string indicates that the linenos table is wrapped in <div class="highlight">, but the actual implementation puts the <div> inside the table cell containing the code. This seems to cause issues as explained in #632, and given it doesn't match the documentation, this PR restores the original behavior. * Fix sample code in comment. * Update CHANGES. * Refactor the wrapping logic. Instead of calling _wrap_div() at the end of wrap(), _wrap_div() is now called after wrap/_wrap_tablinelinenos. This yields the desired behavior but removes the custom <div> generation code.
* | Add lexer for colon-separated value config files like /etc/passwd, ↵Leistungsabfall2022-04-166-2/+236
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /etc/shadow and /etc/group (#2112) * add PasswdLexer and ShadowLexer for lexing /etc/passwd and /etc/shadow * fix regex * Update pygments/lexers/configs.py Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr> * address review comments * update _mapping.py * Create united lexer UnixConfigLexer for config files using colon-separated values, typically used in Unix/Linux system config files. * format docstring * UnixConfigLexer: add whitespace detection * add test snippets for UnixConfigLexer * address review comment Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr> Co-authored-by: Leistungsabfall <–Leistungsabfall@users.noreply.github.com>
* | Fix nested type name highlighting in Savi lexer. (#2110)Joe Eli McIlvain2022-04-122-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nested type names were being highlighted as if they were function names. Now a phrase like `Spec.Process.run` is highlighted properly as: - `Name.Class` - `Punctuation` - `Name.Class` - `Punctuation` - `Name.Function` Instead of wrongly highlighted as it was before this commit: - `Name.Class` - `Punctuation` - `Name.Function` - `Punctuation` - `Name.Function`
* | Highlight python 3.10's EncodingWarning (#2106)Kevin Stock2022-04-061-1/+2
| | | | | | EncodingWarning was added in 3.10: https://docs.python.org/3/library/exceptions.html#EncodingWarning
* | fixup! Register .j2 and .jinja2 file suffixes to relevant lexersPeder Bergebakken Sundt2022-04-041-1/+1
| |
* | Register .j2 and .jinja2 file suffixes to relevant lexersPeder Bergebakken Sundt2022-04-042-7/+11
| |
* | Add string interpolation to the Savi lexer.Joe Eli McIlvain2022-04-043-0/+35
| | | | | | | | | | | | Now the Savi lexer can tokenize string interpolation inside strings, which is a new feature added to Savi since the last time this lexer was updated.
* | Fix Savi highlighting for underscore/private identifiers.Joe Eli McIlvain2022-04-043-5/+5
| | | | | | | | | | | | | | Prior to this change, every underscore/private identifier in Savi code was being highlighted as if it were a class name. After this change, only those whose first letter is uppercase will be highlighted as such, which is the correct behavior.
* | Update Savi language example.Joe Eli McIlvain2022-04-042-65/+23
| | | | | | | | | | The previous example shows the old usage of the testing framework. Now the example reflects the current usage/API of that framework.
* | Update CHANGES.Matthäus G. Chajdas2022-03-311-1/+5
| |
* | Update CHANGES.Matthäus G. Chajdas2022-03-311-0/+1
| |
* | Add Macaulay2 lexer (#1791)Doug Torrance2022-03-315-0/+1801
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Macaulay2 lexer * Update symbols for Macaulay2 1.18 * Match whitespace characters in Macaulay2 lexer * Add states for strings/comments in Macaulay2 lexer * Update Macaulay2 lexer tests for string/comment edge cases * Improve comment and string matching in Macaulay2 lexer Instead of matching each character one at a time, we match all characters without special meaning together. * Update Macaulay2 test output * Update Macaulay2 lexer symbols for 1.19 release * Move "auto-generated" comment in Macaulay2 lexer down a few lines * Fix underline length in Macaulay2 lexer docstring * Add url field for Macaulay2 lexer * Bump copyright year for Macaulay2 lexer
* | LilyPond: fix 'maybe-subproperties' state for properties containing dashes ↵Jean Abou-Samra2022-03-313-3/+16
| | | | | | | | (#2099)
* | Update CHANGSE.Matthäus G. Chajdas2022-03-271-1/+6
| |
* | Terraform: Fix class name lexing (#2097)amitkummer2022-03-2710-25/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Merge unneeded state with it's parent rule The `blockname` state did not have a `#pop` after it's only rule, which caused outputting errors in #2094. Instead of adding a `#pop`, I merged the `blockname` state with the rule that uses it, to achieve the exact same lexing logic, but without another state in the lexer. * Add test for #2094 * Regenerate tokens for previous tests
* | Add more POV-Ray operatorsPetr Zahradník2022-03-263-34/+463
| |
* | Rework URL information in lexers.Matthäus G. Chajdas2022-03-20136-698/+559
| | | | | | | | | | | | | | | | This commit adds a new url field to a lexer, which can be used to link to the language website, instead of relying on having the link in either languages.rst or the docstring of the lexer. Additionally, it changes the languages.rst file to auto-generate the list of lexers from the actual source code, using the provided URL.
* | Add lexer for parsing Uxntal assembly code. (#2086)Erik Osheim2022-03-136-0/+5100
| | | | | | | | | | | | | | | | | | | | | | | | Uxn is a virtual machine which represents a personal computing playground, and is described here: https://100r.co/site/uxn.html Uxntal assembly language is described here: https://wiki.xxiivv.com/site/uxntal.html The demo code piano.tal is used with permission.
* | CFamily: Lex identifiers after `case` as constants (#2084)amitkummer2022-03-1211-182/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Lex identifiers after `case` as constants Add a state for marking identifiers preceded by a `case` keyword as constants. Additionally, refactor the `label` rule to no longer permit a `case` keyword before a label. Consequentially, identifiers after a `case` keyword (like `foo` in `case foo:`) are no longer wrongly lexed as `Name.Label`, but as `Name.Constant`. In addition, this fixes #2076, as multiple `case` keywords in one line are lexed the same. * Add test for multiple `case` keywords in one line * Fix existing tests * Lex `::` as Operator and not Name.Constant After a `case`, when lexing a namespaced name, like `foo::bar`, lex the namespace operator `::` as Operator, and not Name.Constant. * Regenerate tokens
* | LilyPond: fix wrong lexing of name containing builtin name (#2071)Jean Abou-Samra2022-03-073-38/+17
| | | | | | | | | | Non-builtin names were scanned character by character, possibly causing recognition of a suffix as builtin.
* | Added Berry Lexer (#2070)Beormund2022-03-075-0/+3260
| |
* | Add UL4 lexer. (#2040)Walter Dörwald2022-03-0712-0/+1242
| |
* | Add K and Q lexers (#2073)Nick Psaris2022-03-056-0/+1345
| |
* | Update CHANGES, add versionadded.Matthäus G. Chajdas2022-03-042-0/+3
| |
* | Add qlik lexer (#1925)Gemma Down2022-03-046-0/+1221
| |
* | Bump pytest requirement (#2080)Jean Abou-Samra2022-03-031-1/+1
| |
* | Fix typo that prevents ExtendedRegexLexer from working properly (#2078)Bruno Morais2022-03-031-1/+1
| |
* | Let Git ignore .DS_Store files (#2079)Jean Abou-Samra2022-03-021-0/+1
| |
* | Add nowrap option to LatexFormatterTakeshi KOMIYA2022-03-022-13/+35
| |
* | Update Stan to 2.29 standardsJean Abou-Samra2022-03-024-120/+296
|\ \
| * | Changes per reviewBrian Ward2022-03-013-9/+15
| | |
| * | Update Stan to 2.29 standardsBrian Ward2022-02-284-124/+294
| | |
* | | Add notes to Contributing.md about common mistakes in lexers (#2075)Jean Abou-Samra2022-03-024-9/+100
|/ /
* | Update contributing guidelines.Matthäus G. Chajdas2022-02-271-1/+4
| |
* | Fix catastrophic backtracking in HTML and XML (#2069)Jean Abou-Samra2022-02-243-2/+70
| | | | | | | | | | | | These lexers have re.DOTALL in their flags, so r"(.|\n)" is equivalent to r".", except with catastrophic backtracking properties. Closes #2068
* | Merge branch 'gares-fix-elpi'Matthäus G. Chajdas2022-02-204-3/+27
|\ \
| * | Update CHANGES.Matthäus G. Chajdas2022-02-201-1/+5
| | |
| * | Merge branch 'fix-elpi' of https://github.com/gares/pygments into gares-fix-elpiMatthäus G. Chajdas2022-02-203-2/+22
| |\ \ |/ / /
| * | elpi: fix lexing of -> in ctypeEnrico Tassi2022-01-093-2/+22
| | | | | | | | | | | | fix pi8027/algebra-tactics-paper#3
* | | Merge branch 'friguzzi-master'Matthäus G. Chajdas2022-02-2015-0/+1664
|\ \ \