summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Move test_examplefiles to new tests/lexers scheme.examplefilesGeorg Brandl2021-01-18960-129032/+1216885
|
* Replace tests that assert on token output with auto-updatable samples (#1649)Oleh Prypin2021-01-18363-7333/+7742
|
* Matlab class properties (#1466)Dan2021-01-182-68/+201
| | | | | | | | | | | | | | | | | | | * WIP: Add failing test for a matlab class with properties. * Add some missing keywords * Add leading \s* matchers to things above the command form regex, as it tends to swallow keywords otherwise. * Add support for the special 'properties' block syntax. * Fix apparent infinite loop when given garbage input. * Use includes to clean up some of my copypasta. * Fix negative lookahead when there's more than one space between operators. * Use Whitespace not Text for spaces; combine adjacent whitespace. * Add support for declarative property constraints.
* update the mapMestery2021-01-181-1/+1
|
* add markdown to aliasesMestery2021-01-182-1/+2
|
* Run pyupgrade across codebase to modernize syntax and patterns (#1622)Jon Dufresne2021-01-17311-339/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | pyupgrade is a tool to automatically upgrade syntax for newer versions of the Python language. The project has been Python 3 only since 35544e2fc6eed0ce4a27ec7285aac71ff0ddc473, allowing for several cleanups: - Remove unnecessary "-*- coding: utf-8 -*-" cookie. Python 3 reads all source files as utf-8 by default. - Replace IOError/EnvironmentError with OSError. Python 3 unified these exceptions. The old names are aliases only. - Use the Python 3 shorter super() syntax. - Remove "utf8" argument form encode/decode. In Python 3, this value is the default. - Remove "r" from open() calls. In Python 3, this value is the default. - Remove u prefix from Unicode strings. In Python 3, all strings are Unicode. - Replace io.open() with builtin open(). In Python 3, these functions are functionally equivalent. Co-authored-by: Matthäus G. Chajdas <Anteru@users.noreply.github.com>
* Fix for lexing Python raw f-strings with backslashes (#1683)Jeppe Dakin2021-01-172-5/+60
| | | | | | | | | * introduce and apply rfstringescape * add unit test for raw f-strings * add further tests * fix comment
* Move setup.py to a declarative setup.cfg (#1621)Jon Dufresne2021-01-173-65/+68
| | | | | | | | | Docs: https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html Removes mixing code with configuration. No need to execute custom code at the build step. The declarative configuration is also more friendly to scripting. Co-authored-by: Matthäus G. Chajdas <Anteru@users.noreply.github.com>
* update changelogMestery2021-01-171-1/+1
|
* fix escape in TypeScript templates literalsMestery2021-01-171-2/+1
|
* debug_lexer: add Atheris fuzzer mode (for Google OSS-Fuzz)Georg Brandl2021-01-171-11/+50
|
* Added `pygmentize -C` option to guess a lexer from contentGeorg Brandl2021-01-173-2/+27
|
* Do not guess MIME or SQL without reasonGeorg Brandl2021-01-174-5/+2
| | | | constant returns from analyse_text are not useful.
* Make guessing prefer Python 3 lexerGeorg Brandl2021-01-172-5/+7
|
* Fix escapes in JavaScript backtick stringsGeorg Brandl2021-01-172-2/+3
| | | | fixes #1679
* Bump version to 2.7.4.2.7.4Matthäus G. Chajdas2021-01-121-1/+1
|
* Update CHANGES.Matthäus G. Chajdas2021-01-121-1/+0
|
* Revert "Added dracula theme style (#1636)"Matthäus G. Chajdas2021-01-122-111/+0
| | | | | | | This reverts commit bd378d0ef57a6bc53e9079c9363a6eab0d54f0dc. The license terms in dracula.py don't match. We'll add it back once the author places it under the correct license.
* Prepare for 2.7.4 release.Matthäus G. Chajdas2021-01-121-5/+8
|
* doc: remove Perl 6 refGeorg Brandl2021-01-111-1/+0
|
* Fix several exponential/cubic complexity regexes found by Ben Caller/DoyensecGeorg Brandl2021-01-118-12/+14
|
* xquery: fix pop from empty stackGeorg Brandl2021-01-111-1/+2
|
* fix coding style in test_analyzer_lexerGeorg Brandl2021-01-111-22/+31
|
* Added 'ERROR STOP' to fortran.py keywords. (#1665)ecasglez2021-01-101-2/+2
| | | Maybe close #931
* support added for css variables (#1633)zjeffer2021-01-101-0/+3
| | | | | * support added for css variables * [-]+ instead of [-]*
* (sql.py): fix errors in keywords (#1668)0xflotus2021-01-101-6/+6
|
* Add __END_LINE__ to Crystal syntax highlighting (#1670)Linda_pp2021-01-091-0/+1
| | | I found `__END_LINE__` magic constant is missing in syntax highlighting for Crystal language.
* update pygments.rb URL to new home (#1669)Marat Radchenko2021-01-082-2/+2
| | | see #1660
* Prepare for 2.7.4 release.Matthäus G. Chajdas2021-01-061-109/+123
|
* Detect malformed closing tags as errors. (#1656)Catatonic2021-01-062-1/+36
|
* Fix #1582 -- invalid comment in Matlab example.Matthäus G. Chajdas2021-01-061-1/+1
|
* Markdown lexer improvements (#1623)Leistungsabfall2021-01-062-41/+115
| | | | | | | | | * improve fenced code recognition for markdown lexer * improve inline code detection * improve detection of some Markdown keywords * remove Markdown recognition of code indented by 4 spaces as reliable detection is not possible with regex
* support indented entries in IniLexer (#1624)Leistungsabfall2021-01-042-1/+82
|
* Update Crystal lexer (#1650)Oleh Prypin2021-01-043-90/+282
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * crystal: drop all classes from builtins; these aren't normally highlighted ("normally" meaning all other highlighter tools) * crystal: fix percent-strings, drop Ruby-specific arbitrary delimiters It seems that Ruby supports strings such as `%*text*` where `*` can be anything. But Crystal never had anything like that. It does, however, keep `%|text|`, so add a case for that. * crystal: update keywords and builtins * crystal: fix string literals and escape sequences Update list of escapes. Support Unicode escape sequences. Also remove the Ruby-specific `:@foo` symbol syntax, Crystal doesn't have it. * crystal: uppercase identifiers aren't always constants Make `FOO::Bar` be highlighted like `Foo::Bar` would be, rather than like `FOO` * crystal: annotations can be namespaced Highlight the entire inside part of `@[Foo::Bar]`, not just the `Foo` part (these used to be named 'attributes' but the official name is 'annotations' now, so I also change that) * fixup! crystal: fix percent-strings, drop Ruby-specific arbitrary delimiters
* Fix Coq-related bug #678 (#1648)Maximilian Wuttke2021-01-042-3/+39
| | | | | | | | | | | * Unicode support for Coq Catch-all lexing for `Name.Builtin.Pseudo`, as in the lean lexer. This fixes #678. * Coq lexer: improve `analyse_text` * Add a test for Coq
* Update CHANGES.Matthäus G. Chajdas2021-01-041-0/+1
|
* Merge branch 'master' of https://github.com/felixhao28/pygments into ↵Matthäus G. Chajdas2021-01-042-3/+25
|\ | | | | | | felixhao28-master
| * Update tests/test_javascript.pyFelix Hao2021-01-041-1/+1
| | | | | | Co-authored-by: Mestery <48163546+Mesteery@users.noreply.github.com>
| * add test_function_definitionYiyang Hao2020-08-241-1/+23
| |
| * fix punctuation not labeled in function definition in TypeScriptYiyang Hao2020-08-161-1/+1
| |
* | Bump copyright year.Matthäus G. Chajdas2021-01-03304-308/+308
| |
* | Update keywords for JS and its variants (#1651)Mestery2021-01-021-37/+35
| | | | | | | | | | | | | | Some of the keywords are missing for JavaScript and TypeScript. And some of reserved keywords have been moved to `keywords` and `declarations keywords`. There are also non-existent builtins that I removed. Added missing builtins.
* | Revert a private API in the HTML formatter (#1655)Kurt McKee2020-12-301-6/+9
| | | | | | | | | | | | This should revert the behavior of the function without losing the overall caching behavior that was intended. Closes #1644
* | Fix #1652.Matthäus G. Chajdas2020-12-292-1/+2
| | | | | | | | in is a keyword in Bash, ZSH, and KSH.
* | re-alphabetize AUTHORSGeorg Brandl2020-12-281-1/+1
| |
* | add my name on AUTHORS (#1611)15b32020-12-281-0/+1
| |
* | add some changelogsGeorg Brandl2020-12-281-0/+2
| |
* | feat: added 'ONLY' to fortran.py Keywords0xflotus2020-12-281-3/+3
| | | | | | maybe close #1543
* | add support for LiveScript and CoffeeScriptMestery2020-12-281-4/+4
| |
* | Fix regexs to support somes flagsMestery2020-12-281-4/+4
| | | | | | Resolves #1646