summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Update expected output for Ruby.Matthäus G. Chajdas2021-02-141-14/+7
| | |
| * | Cleanup test_ruby after merge.Matthäus G. Chajdas2021-02-141-132/+1
| | |
| * | Merge branch 'issue-253-ruby-unicode' of ↵Matthäus G. Chajdas2021-02-142-3/+192
| |\ \ |/ / / | | | | | | https://github.com/kurtmckee/pygments into kurtmckee-issue-253-ruby-unicode
| * | Rely on the regex engine's `\u1234` escape supportKurt McKee2020-09-051-7/+7
| | |
| * | Standardize the entire multi-line string to use no `r` string prefixesKurt McKee2020-09-041-2/+2
| | |
| * | Support Ruby method names and operator overrides, including UnicodeKurt McKee2020-09-042-5/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #253 This patch contains these changes: * Add 50+ new Ruby tests for method name/operator override matching. * Unicode method names are now supported (#253). * `=` method name postfixes are now supported. * These operator overrides are now supported: `<`, `<=`, `!` `!@`, `~@`, `!`, `!=`, `!~`, `=~` * The `<>` "operator" override is removed. It appears that this was a typo in the regular expression (`<=?>` should have been `<=>?`). Syntax verified with https://docs.ruby-lang.org/en/2.7.0/syntax/methods_rdoc.html
* | | Update Fortran test file.Matthäus G. Chajdas2021-02-121-34/+17
| | | | | | | | | | | | We identify more keywords now thanks to #1677.
* | | Fotran lexer: detect keywords formed by two keywords without inter-word ↵ecasglez2021-02-121-0/+3
| | | | | | | | | | | | | | | | | | | | | spaces. (#1677) * Fix for issue #1188. * I took the list of keywords affected by this issue from the VIM fortran lexer. * All the affeced keywords are ending keywords, that is, "end" followed by another keyword without space.
* | | Supports single quote strings in AutoItLexer (#1667)trdean12021-02-083-0/+19
| | | | | | | | | | | | | | | * Supports single quote strings in AutoItLexer * Adds test case for autoIt single strings
* | | Update CHANGES.Matthäus G. Chajdas2021-02-071-0/+1
| | |
* | | Add Zenburn theme (#1659)Mantas Zimnickas2021-02-072-0/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Zenburn theme Zenburn theme home page: https://kippura.org/zenburnpage/ And Vim Zenburn theme repository, from which I took color codes: https://github.com/jnurmine/Zenburn * Add line number and other styles for zenburn As requested in code review. * Fix failing tests Probably during rebase I accidentally added dracula, which is now removed. * Remove encoding file markers It looks, that pygments no longer use these markers. * Add special colors for line numbers Something does not work with HTML generator, because colors does not show up, unless I added `noclasses=True`.
* | | Add Material theme style (#1662)Paulo S. Costa2021-02-073-0/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Material theme style * List Material style in CHANGES * Change highlight color to be darker * Adjust line number special color * Set line number special background color Co-authored-by: Matthäus G. Chajdas <Anteru@users.noreply.github.com>
* | | Update CHANGES.Matthäus G. Chajdas2021-02-071-0/+2
| | |
* | | Updated Stata buildin function list modified: ↵Hua Peng2021-02-071-53/+90
| | | | | | | | | | | | | | | | | | | | | pygments/lexers/_stata_builtins.py (#1470) * modified: pygments/lexers/_stata_builtins.py * modified: pygments/lexers/_stata_builtins.py
* | | Add missing prompt color for Solarized style. (#1529)Kevin Deldycke2021-02-071-0/+3
| | | | | | | | | | | | | | | | | | | | | * Add missing prompt color for Solarized style. * Add missing output color style. * Add missing generic color.
* | | Regenerate test files.Matthäus G. Chajdas2021-02-072-0/+2
| | | | | | | | | | | | This adds a newline and makes sure the files round-trip correctly.
* | | Update CHANGES, move graphviz test file.Matthäus G. Chajdas2021-02-073-0/+73
| | |
* | | Add lexer for graphviz (#1657)Niklas Mollenhauer2021-02-074-0/+70
| | | | | | | | | | | | | | | | | | | | | Imported from: https://github.com/nikeee/pygments-lexer-graphviz See: https://github.com/pygments/pygments/issues/731
* | | Remove the alias for the RawTokenLexer. (#1643)Georg Brandl2021-02-063-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | RawTokenLexer was broken until 2.7.4, so it seems pretty much unused, and it led to tracebacks when the "raw" alias was used from some markup that allows specifying a language alias. We'll still keep the class for special usage as intended. Co-authored-by: Matthäus G. Chajdas <Anteru@users.noreply.github.com>
* | | Improve Kotlin lexer (#1699)Ilya Zorin2021-02-0610-158/+280
| | |
* | | Fix for lexing J operator ? (#1700)amitkummer2021-02-063-1/+18
| | | | | | | | | | | | | | | * Add J lexer tests for operator ? * Make J lexer match ? as an operator
* | | Support anchored line numbers in inline mode (#1591)Kevin Deldycke2021-02-0617-50/+58
| | | | | | | | | | | | | | | * Add support for anchored line numbers in inline rendering mode * Fix tests rendering anchored line number in inline mode
* | | MATLAB parser cleanup & fix for parsing `1./x` (#1673)Antony Lee2021-02-062-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Clarify recognition of "command form" by MATLAB parser. Expand a bit the explanation; remove an unnecessary non-capturing group, replace \s+ by \s at the end (we just need to check for the presence of a space). * MATLAB: Correctly parse 1./x as (1)(./)(x).
* | | Fix #1046.Matthäus G. Chajdas2021-02-063-0/+23
| | | | | | | | | | | | LESS lexer didn't handle single-line comments.
* | | linenos support for terminal256 (#1674)Jiamin Shen2021-02-061-1/+23
| | |
* | | Update CHANGES.Matthäus G. Chajdas2021-01-301-2/+6
| | |
* | | Merge branch 'mathiasertl-master'Matthäus G. Chajdas2021-01-308-14/+56
|\ \ \
| * \ \ Merge branch 'master' of https://github.com/mathiasertl/pygments into ↵Matthäus G. Chajdas2021-01-308-14/+56
| |\ \ \ |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | mathiasertl-master Resolve conflicts, move tests to snippets, regenerate example files. # Conflicts: # tests/test_shell.py
| * | | add another test caseMathias Ertl2021-01-101-0/+17
| | | |
| * | | only print PS2 prompt if backslash continuation is enabledMathias Ertl2021-01-102-10/+21
| | | |
| * | | make PS2 contain a spaceMathias Ertl2021-01-102-1/+14
| | | |
* | | | Add expected output for the AMDGPU example.Matthäus G. Chajdas2021-01-303-0/+134
| | | |
* | | | AMDGPU ISA Lexer (#1626)Thomas Symalla2021-01-304-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * This commit implements a basic lexer for the AMDGPU ISA definition. * Updated comment. * Updated comment. * Tried to fix case-sensitive issue. * Updated AUTHORS file. * Added shader unit test for the AMD ISA Parser. * Renamed AMDGCN lexer to AMDGPU. * Renamed example file. * Renames. Co-authored-by: Thomas Symalla <root@SEUCHOMAT.localdomain>
* | | | cmdline: port to argparse (#1693)Georg Brandl2021-01-303-185/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cmdline: port to argparse * cmdline: adapt the argparse help formatter to actually take terminal width into account * Update based on review feedback. * Extract "is_only_option" method * Check -L argument to be a "known good" argument Co-authored-by: Matthäus G. Chajdas <dev@anteru.net>
* | | | Updated OpenEdge keywords (#1696)movedoa2021-01-291-384/+438
| | | | | | | | | | | | Co-authored-by: Alexander Dobetsberger <alexander.dobetsberger@moveit.at>
* | | | Fix mishandling '*/' in C/C++ and related (fixes #1695)Georg Brandl2021-01-296-11/+36
| | | |
* | | | increase allowed time for "expensive" checks, pypy is slowGeorg Brandl2021-01-291-4/+6
| | | |
* | | | scripts: fix file headersGeorg Brandl2021-01-212-1/+11
| | | |
* | | | remove unused epydoc css fileGeorg Brandl2021-01-211-280/+0
| | | |
* | | | update manpage with -g, -N, -CGeorg Brandl2021-01-211-2/+20
| | | |
* | | | conftest: disallow error tokens in examplefilesGeorg Brandl2021-01-219-23/+31
| | | | | | | | | | | | | | | | | | | | | | | | They are ok in small snippets to demonstrate error cases. Also recode all examplefiles to UTF-8.
* | | | Rename "tests/lexers" to "tests/snippets" and update the contributionGeorg Brandl2021-01-20322-21/+32
| | | | | | | | | | | | | | | | docs to point to both snippets and examplefiles.
* | | | tests: code style fixupsGeorg Brandl2021-01-2015-121/+131
| | | |
* | | | fix check_sources: we dont have an encoding decl anymoreGeorg Brandl2021-01-201-21/+14
| | | | | | | | | | | | | | | | and a few other things
* | | | Also add auto-updatable output-based tests to examplefiles (#1689)Oleh Prypin2021-01-20963-2965/+1089478
| | | | | | | | | | | | Co-authored-by: Georg Brandl <georg@python.org>
* | | | 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>