Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | | Fix for lexing Python raw f-strings with backslashes (#1683) | Jeppe Dakin | 2021-01-17 | 2 | -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 Dufresne | 2021-01-17 | 3 | -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 changelog | Mestery | 2021-01-17 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | fix escape in TypeScript templates literals | Mestery | 2021-01-17 | 1 | -2/+1 | |
| | | | | ||||||
* | | | | debug_lexer: add Atheris fuzzer mode (for Google OSS-Fuzz) | Georg Brandl | 2021-01-17 | 1 | -11/+50 | |
| | | | | ||||||
* | | | | Added `pygmentize -C` option to guess a lexer from content | Georg Brandl | 2021-01-17 | 3 | -2/+27 | |
| | | | | ||||||
* | | | | Do not guess MIME or SQL without reason | Georg Brandl | 2021-01-17 | 4 | -5/+2 | |
| | | | | | | | | | | | | | | | | constant returns from analyse_text are not useful. | |||||
* | | | | Make guessing prefer Python 3 lexer | Georg Brandl | 2021-01-17 | 2 | -5/+7 | |
| | | | | ||||||
* | | | | Fix escapes in JavaScript backtick strings | Georg Brandl | 2021-01-17 | 2 | -2/+3 | |
| | | | | | | | | | | | | | | | | fixes #1679 | |||||
* | | | | Bump version to 2.7.4.2.7.4 | Matthäus G. Chajdas | 2021-01-12 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | Update CHANGES. | Matthäus G. Chajdas | 2021-01-12 | 1 | -1/+0 | |
| | | | | ||||||
* | | | | Revert "Added dracula theme style (#1636)" | Matthäus G. Chajdas | 2021-01-12 | 2 | -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. Chajdas | 2021-01-12 | 1 | -5/+8 | |
| | | | | ||||||
* | | | | doc: remove Perl 6 ref | Georg Brandl | 2021-01-11 | 1 | -1/+0 | |
| | | | | ||||||
* | | | | Fix several exponential/cubic complexity regexes found by Ben Caller/Doyensec | Georg Brandl | 2021-01-11 | 8 | -12/+14 | |
| | | | | ||||||
* | | | | xquery: fix pop from empty stack | Georg Brandl | 2021-01-11 | 1 | -1/+2 | |
| | | | | ||||||
* | | | | fix coding style in test_analyzer_lexer | Georg Brandl | 2021-01-11 | 1 | -22/+31 | |
| | | | | ||||||
* | | | | Added 'ERROR STOP' to fortran.py keywords. (#1665) | ecasglez | 2021-01-10 | 1 | -2/+2 | |
|/ / / | | | | | | | Maybe close #931 | |||||
* | | | support added for css variables (#1633) | zjeffer | 2021-01-10 | 1 | -0/+3 | |
| | | | | | | | | | | | | | | | * support added for css variables * [-]+ instead of [-]* | |||||
* | | | (sql.py): fix errors in keywords (#1668) | 0xflotus | 2021-01-10 | 1 | -6/+6 | |
| | | | ||||||
* | | | Add __END_LINE__ to Crystal syntax highlighting (#1670) | Linda_pp | 2021-01-09 | 1 | -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 Radchenko | 2021-01-08 | 2 | -2/+2 | |
| | | | | | | | | | see #1660 | |||||
* | | | Prepare for 2.7.4 release. | Matthäus G. Chajdas | 2021-01-06 | 1 | -109/+123 | |
| | | | ||||||
* | | | Detect malformed closing tags as errors. (#1656) | Catatonic | 2021-01-06 | 2 | -1/+36 | |
| | | | ||||||
* | | | Fix #1582 -- invalid comment in Matlab example. | Matthäus G. Chajdas | 2021-01-06 | 1 | -1/+1 | |
| | | | ||||||
* | | | Markdown lexer improvements (#1623) | Leistungsabfall | 2021-01-06 | 2 | -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) | Leistungsabfall | 2021-01-04 | 2 | -1/+82 | |
| | | | ||||||
* | | | Update Crystal lexer (#1650) | Oleh Prypin | 2021-01-04 | 3 | -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 Wuttke | 2021-01-04 | 2 | -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. Chajdas | 2021-01-04 | 1 | -0/+1 | |
| | | | ||||||
* | | | Merge branch 'master' of https://github.com/felixhao28/pygments into ↵ | Matthäus G. Chajdas | 2021-01-04 | 2 | -3/+25 | |
|\ \ \ | | | | | | | | | | | | | felixhao28-master | |||||
| * | | | Update tests/test_javascript.py | Felix Hao | 2021-01-04 | 1 | -1/+1 | |
| | | | | | | | | | | | | Co-authored-by: Mestery <48163546+Mesteery@users.noreply.github.com> | |||||
| * | | | add test_function_definition | Yiyang Hao | 2020-08-24 | 1 | -1/+23 | |
| | | | | ||||||
| * | | | fix punctuation not labeled in function definition in TypeScript | Yiyang Hao | 2020-08-16 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | Bump copyright year. | Matthäus G. Chajdas | 2021-01-03 | 304 | -308/+308 | |
| | | | | ||||||
* | | | | Update keywords for JS and its variants (#1651) | Mestery | 2021-01-02 | 1 | -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 McKee | 2020-12-30 | 1 | -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. Chajdas | 2020-12-29 | 2 | -1/+2 | |
| | | | | | | | | | | | | | | | | in is a keyword in Bash, ZSH, and KSH. | |||||
* | | | | re-alphabetize AUTHORS | Georg Brandl | 2020-12-28 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | add my name on AUTHORS (#1611) | 15b3 | 2020-12-28 | 1 | -0/+1 | |
| | | | | ||||||
* | | | | add some changelogs | Georg Brandl | 2020-12-28 | 1 | -0/+2 | |
| | | | | ||||||
* | | | | feat: added 'ONLY' to fortran.py Keywords | 0xflotus | 2020-12-28 | 1 | -3/+3 | |
| | | | | | | | | | | | | maybe close #1543 | |||||
* | | | | add support for LiveScript and CoffeeScript | Mestery | 2020-12-28 | 1 | -4/+4 | |
| | | | | ||||||
* | | | | Fix regexs to support somes flags | Mestery | 2020-12-28 | 1 | -4/+4 | |
| | | | | | | | | | | | | Resolves #1646 | |||||
* | | | | Merge github.com:mathiasertl/pygments | Georg Brandl | 2020-12-28 | 3 | -5/+27 | |
|\ \ \ \ | | | | | | | | | | | | | | | | fixes #1645 | |||||
| * | | | | add tests to illustrate problem discussed in PR #1645 | Mathias Ertl | 2020-12-26 | 1 | -0/+25 | |
| | | | | | ||||||
| * | | | | consider trailing whitespace a part of the prompt, making copy/paste more ↵ | Mathias Ertl | 2020-12-25 | 2 | -6/+4 | |
| | | | | | | | | | | | | | | | | | | | | straight forward | |||||
* | | | | | do_insertions: do not emit empty tokens | Georg Brandl | 2020-12-28 | 4 | -23/+10 | |
|/ / / / | ||||||
* | | | | Restore timing stats in test_examplefiles, and cut down USD file. | Georg Brandl | 2020-12-25 | 2 | -56/+16 | |
| | | | | ||||||
* | | | | all: weed out more backtracking string regexes | Georg Brandl | 2020-12-25 | 26 | -110/+108 | |
| | | | |