summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix reST markup mistake (#2176)Álvaro Mondéjar2022-07-051-1/+1
|
* PHP: fix `\"$var\"` inside strings (fixes #2105)Georg Brandl2022-06-303-9/+37
|
* Update CHANGESJean Abou Samra2022-06-291-0/+2
|
* Update dotnet.py with _obas aliases (#2170)flywire2022-06-292-2/+3
| | | | | DotNet lexer works with LibreOffice Basic, OpenOffice Basic, and StarOffice Basic. * Update _mapping.py
* Slight doc clarification about 'make mapfiles'Jean Abou Samra2022-06-291-1/+2
|
* Update CHANGESJean Abou Samra2022-06-281-0/+1
|
* Added cartouche handling for Isabelle lexer (#2159)Dacit2022-06-287-6197/+18422
| | | Co-authored-by: Fabian Huch <huch@in.tum.de>
* Update CHANGESJean Abou Samra2022-06-251-0/+1
|
* Add 1.18 generics support for go lexer (#2167)Shengyu Zhang2022-06-253-3/+198
| | | | | | - Add new predeclared identifiers: `any` and `comparable` - Add new operator for type parameters: `~` and `|` Ref: https://go.dev/ref/spec
* Matlab session: fix traceback when a line continuation ellipsis appears in ↵Georg Brandl2022-06-233-1/+21
| | | | | | the output Fixes #2166
* add missing change for lilypond testsGeorg Brandl2022-06-211-192/+192
|
* Update the Tera Term golden fileKurt McKee2022-06-212-295/+79
|
* Update Tera Term string handlingKurt McKee2022-06-211-15/+6
| | | | | | | * Remove backslash escape lexing in string literals. (Don't know why I added those in the first place!) * Lex strings in their entirety, not one character at a time. * Treat unclosed string literals as errors.
* Modify the Tera Term lexer so it outputs Text.Whitespace tokens correctlyKurt McKee2022-06-211-3/+3
| | | | Related to #1905
* Modify tox.ini to drop CPython 3.5 and PyPy3 testingKurt McKee2022-06-211-1/+1
|
* lilypond: fix Whitespace tokenGeorg Brandl2022-06-212-3/+2
|
* Merge branch 'SECtim-patch-1'Matthäus G. Chajdas2022-06-194-58/+7
|\
| * Update tests.Matthäus G. Chajdas2022-06-193-57/+6
| |
| * Merge branch 'patch-1' of https://github.com/SECtim/pygments into SECtim-patch-1Matthäus G. Chajdas2022-06-191-1/+1
| |\ |/ /
| * Allow C-style line comments to start anywhereSECtim2021-04-061-1/+1
| | | | | | F* actually allows for C-style `//` line comments to start anywhere in a line, not just at the beginning.
* | Update CHANGES.Matthäus G. Chajdas2022-06-191-2/+3
| |
* | terraform: accept leading whitespace for << heredoc delimGeorg Brandl2022-06-173-1/+36
| | | | | | | | Fixes #2162
* | Update CHANGES for 6eab78a1a0Jean Abou Samra2022-06-171-0/+1
| |
* | configs: style fixesGeorg Brandl2022-06-171-4/+3
| |
* | agda: allow ticks in module namesGeorg Brandl2022-06-173-12/+16
| | | | | | | | Fixes #2163
* | Update CHANGES (with added comment following up on previous commit)Jean Abou Samra2022-06-162-1/+4
| |
* | Ada: fixing highlighting for Ada aspects (#2125)Gustavo A. Hoffmann2022-06-165-15/+543
| |
* | Update CHANGESJean Abou Samra2022-06-131-1/+6
| |
* | Detect true-color terminal support for pygmentize (#2160)Micah Cochran2022-06-132-2/+16
| | | | | | | | | | | | For the pygmentize command line, this pull request adds detection of true-color support on the terminal and makes that the default formatter. It looks up the COLORTERM environment variable having a value of truecolor or 24bit. If that is the case, it sets the default formatter to use the TerminalTrueColorFormatter. The COLORTERM environment variable is a convention that has been adopted by some terminals for specifying true-color is supported.
* | coq: Add some common keywords and improve recognition of Set and qualified ↵Xia Li-yao2022-06-114-25/+162
| | | | | | | | | | | | | | | | | | identifiers (#2158) . is not an operator in Coq: in this specific usage, it is only meant to build a qualified name, so this rule really corresponds to a proper lexical rule in Coq Unlike most languages, Coq has a large set of special words that are not reserved: they may still be used as identifiers. For example Prop is a special word, which currently gets highlighted as such in Equations.Prop.Equations, but it should be recognized as a regular name there. Because of how flexible the syntax of Coq is, it's not straightforward to disambiguate things with just a bunch of regexes, so we have to rely on heuristics. Skipping qualified names from being recognized as keywords is an easy win.
* | Update CHANGESJean Abou Samra2022-06-051-0/+25
| |
* | feat: add a new SqlJinjaLexer (#2148)Edgar R. M2022-06-055-2/+210
| |
* | Switch from pkg_resources to importlib.metadata (#2155)Jean Abou-Samra2022-06-043-13/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Switch from pkg_resources to importlib.metadata importlib.metadata is a standard library replacement for pkg_resources, available starting with Python 3.8. It is faster than pkg_resources. This lets the plugin interface use it when available, i.e. on Python 3.8 and later. On earlier Python, it uses the importlib_metadata PyPI backport if available, and finally falls back on pkg_resources. setup.cfg gains an extra called plugins, which can allow a project to install "pygments[plugins]" in order to ensure that plugins support is present even if installed with older Python versions. Timings for lexing an empty file with a lexer from a random plugin: Before: real 0m0,238s user 0m0,210s sys 0m0,029s After: real 0m0,141s user 0m0,125s sys 0m0,017s Fixes #2116, #2126
* | tcl: accept variables in ${name} syntaxGeorg Brandl2022-06-043-2/+21
| | | | | | | | Fixes #2145
* | Support building docs when some plugins are installed (#2154)Jean Abou-Samra2022-06-041-6/+8
| | | | | | | | | | | | | | | | | | | | * Support building docs when some plugins are installed Pass plugins=False to get_all_lexers, otherwise we try to document them, which fail. For styles, use STYLE_MAP directly; given that I'm trying to introduce a new plugin interface, I'd rather not change get_all_styles to support plugins=False right now. * Add comment (and a fix)
* | Update token docs (#2156)Jean Abou-Samra2022-06-041-14/+6
| |
* | Remove filename pattern caches (#2153)Jean Abou-Samra2022-06-042-28/+8
| | | | | | | | These are irrelevant because the fnmatch module implementation already uses functools.lru_cache.
* | Add FIXME to default code tags (#2150)Jean Abou-Samra2022-06-041-2/+5
| | | | | | It is quite common in my experience, along with 'TODO' and 'XXX'.
* | Update CHANGESJean Abou Samra2022-05-301-0/+3
| |
* | Fix comments within function declarations in C (#1891) (#2140)lambda-karlculus2022-05-305-20/+446
| | | | | | Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
* | Merge mapping file generation scripts (#2152)Jean Abou-Samra2022-05-294-126/+59
| | | | | | | | | | | | | | | | | | Use a unified script, to reduce code duplication and in preparation for doing a similar thing with styles and filters. The new script also uses a bit more modern Python APIs (e.g., pathlib). Unlike the previous scripts, it does not replace replace CRLF with LF because Git should do that itself.
* | Fix make check (#2151)Jean Abou-Samra2022-05-291-2/+2
| | | | | | | | pyflakes complained about an unused variable due to an oversight in 49c757cab5.
* | Overhaul demo and support running it locally (#2141)amitkummer2022-05-2110-28/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Make target for building Pyodide with currently checked out Pygments Add a target to the documentation's Makefile to make Pyodide with Pygments from the current checkout. Additionally, use this target when building the documentation with the demo page. The new target works by building Pyodide on a Docker container, and then exporting the build artifacts back to the host. The Dockerfile used by the new target is based on the Dockerfile which was used for building Pyodide on the CI: https://github.com/pygments/pyodide-artifacts/blob/master/container/Dockerfile The main difference between the two is that the new Dockerfile uses the newest Pyodide base image, which is built by a repository which is actively maintained (the Iodide project is no longer maintained). The purpose of this change is to allow running the demo locally, which was not possible previously, as Pyodide was only built by the CI when deploying to Github Pages. * Add instructions on how to run the demo locally to the README * Update demo to work with Pyodide v0.20 Remove usage of Pyodide functionality which was deprecated in Pyodide v0.17: - Loading Pyodide using `languagePluginURL` and `languagePluginLoader`. - Access to globals via `pyodide.globals.x` has changed to `pyodide.globals.get("x")`. Source: https://pyodide.org/en/stable/project/release-notes/v0.17.0.html?highlight=languageplugin#api-changes * Fix #2137 * Fix use of `styles` variable before it's defined The `styles` variable was being used before it's value was set (which is done when Pyodide finishes loading). * Remove GitHub action for building Pyodide This action is obsolete, as building Pyodide is now done using `make pyodide`. * Upgrade Pages deployment action version * Add to .dockerignore all files in .gitignore * Change `pyodide` target to be a phony target
* | Update CHANGESJean Abou Samra2022-05-201-3/+16
| |
* | Update CHANGESJean Abou Samra2022-05-201-3/+15
| |
* | Add value modifier for Kotlin (#2142)Derek Ellis2022-05-201-1/+1
| |
* | Update Macaulay2 lexer for version 1.20 (#2139)Doug Torrance2022-05-161-2/+31
| |
* | Fix most warnings in Sphinx build (#2124)Jean Abou-Samra2022-05-134-25/+33
| | | | | | | | | | | | | | | | | | | | | | * Fix most warnings in Sphinx build Note that some invalid references are simply removed because the lexers are all in the same section, so the link is already easy to find and there is no need to repeat it over and over. * fixup: Add orphan languages.rst to allow referencing * Typos
* | nim: types shouldn't be highlighted as keywords (#2136)Miran2022-05-124-60/+134
| | | | | | Use `Name.Builtin`.
* | Improve heuristic to warn about passing lexer/formatter class (#2123)Jean Abou-Samra2022-05-122-7/+28
| | | | | | | | Don't rely on the error message since 'missing 1 required positional argument' can give false positives. Instead, use issubclass().