summaryrefslogtreecommitdiff
path: root/tests/snippets
Commit message (Collapse)AuthorAgeFilesLines
...
* Update test files.Matthäus G. Chajdas2021-10-151-2/+2
|
* Refactor identifiers regex to match unicode characters (#1848)amitkummer2021-10-151-0/+146
|
* Fix #1237 cpp whitespace token usage expanded (#1904)Sebastian Engel2021-10-021-1/+1
| | | | | * Fix #1237 cpp whitespace token usage expanded * Adapt tests change to 3eff56f5
* Add new Java syntax: sealed classes and record types. (#1902)Benjamin Peterson2021-09-291-0/+15
|
* Java: do not lex whitespace as Label, do not lex "default" as LabelGeorg Brandl2021-07-312-1/+38
| | | | Fixes #1851
* Add support for JSLT (#1821)João Abecasis2021-07-181-0/+83
| | | | | | | | | | * Add support for JSLT JSLT is an open-source JSON query and transformation language, inspired by jq, XPath, and XQuery: https://github.com/schibsted/jslt. * fixup! Add support for JSLT * fixup! Add support for JSLT
* Improved Rust attributes (#1813)kaivol2021-06-251-0/+12
|
* Use Whitespace for whitespace in Tcl.Matthäus G. Chajdas2021-06-201-38/+38
|
* tcl lexer: no error for @ or , (#1834)Akuli2021-06-201-0/+131
| | | | | | | * tcl lexer: no error for @ or , * examplefiles --> snippets * rename test file to convention
* Use the correct whitespace token for the C family.Matthäus G. Chajdas2021-06-2021-106/+106
| | | | The CFamilyLexer was matching whitespace as Text instead of Whitespace.
* Fix CFamilyLexer preprocessor tokenization errors (#1830)Henrik Lievonen2021-06-203-0/+50
| | | | | | | | | | | | CFamilyLexer failed to tokenize preprocessor macros when they were preceded by line break surrounded by spaces. This was the case because prerpocessor regex rule expected to start at the beginning of the line, but the space regex rule matched also the whitespace after the line break. Now the space rule has been refined not to match the line break. Because of this, the preprocessor regex rule correctly matches prerpocessor tokens even when they are preceded by white spaces, at the cost of adding some more tokens in the token stream in some cases. This change preserves the behavior of invalid preprocessor usage failing to tokenize.
* Rust: fix lexing of "break" and "continue"Georg Brandl2021-06-201-0/+39
| | | | fixes #1843
* Correctly highlight multiline console input, even without PS2 prompt (#1833)Jesse Tan2021-06-044-0/+32
|
* Support Terraform 0.14 syntax (#1756)Leonardo Giordani2021-05-029-0/+673
| | | | | * Support Terraform 0.14 syntax * Use \S instead of [^\s]
* Support for OMG IDL (#1595)Fred Hornsey2021-05-024-0/+61
| | | | | | | | | | | | | | | | | | * Support for OMG IDL Lexer for [Object Management Group Interface Definition Language](https://www.omg.org/spec/IDL/About-IDL/). * Allow Whitespace Before include in C Preprocessor It wasn't highlighting the included filename the same as if there was no space before the include, but now it is. * Update omg-idl Tests to Latest Requirements * Update omg-idl versionadded to 2.9 Since I just realized this missed the 2.8 release. * Add Missing Operators to omg-idl
* Improve PromQL lexer with new test cases (#1783)Pablo Seminario2021-04-242-0/+51
| | | | | | | | | * Fix PromQL lexer to support values enclosed within single quotes Values for labels could now be enclosed within single or double quotes. * Fix a typo into the lables regex for PromQL lexer The correct label matching operator is `!~` instead of `~!`.
* Rust: fix raw string tokenGeorg Brandl2021-04-121-0/+117
| | | | Fixes #1771
* Fix python lexer parsing floats incorrectly (#1768)Liam Stevens2021-04-101-0/+75
| | | | | | | | | * lexers: python: add test cases for floats * lexers: python: fix float lexing * lexer:python:fixed test syntax Co-authored-by: Aidan Do <giahuydo99@gmail.com>
* Fix #1416: add WebAssembly lexer (#1564)Jendrik2021-04-049-0/+89
| | | | | | | | | | | | | | | | | | | * add WebAssembly lexer * avoid test failure by using the default function instead of an empty regex * address small issues * fix WebAssembly string escapes * change WebAssembly multiline comment parsing * update copyright year * set versionadded to 2.9 * change WebAssembly tests to use the new test system * change WebAssembly unit test to use snippets
* PowerShell: lex ':' (#1758)amitkummer2021-03-283-3/+38
|
* Leading underscore in APL variable names (GNU, Dyalog) (#1747)Stefan Kruger2021-03-151-0/+26
| | | | | | | | | | | * Two small tweaks to the APL lexer: 1. Add all APL file suffixes 2. Allow leading _ in variable names (GNU APL, Dyalog) * Build mappings to pick up new file extensions * Add tests for APL: 1. Leading underscores for variables OK (Dyalog, GNU)
* Add a teal lexer (#1671)iscke2021-03-143-0/+71
| | | | | | | | | * Add a teal lexer * fix an indent * convert tests, fix version, alias * fix examplefile
* Update lists of operators/keywords in Julia and expand/refine highlighting ↵jmert2021-03-059-0/+1276
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#1715) * [julia] Update operators, keywords, and literal lists * [julia] Support symbol macros * [julia] Parse '..' operator juxtaposed with integers * [julia] Identify Symbol literals * [julia] Consume strings/commands faster & add triple-quoted command * [julia] Support identifying operators with custom suffixes * [julia] Add parsing for raw strings * [julia] Share definition of interpolation * [julia] Identify escaped ` and $ in commands * [julia] Support non-standard string and commmand literals with flags * [julia] Support variable names with interior exclamations * [julia] Fix matching floats starting with decimal * [julia] Compress nearly duplicate number matches with optional group * [julia] Match double-underscored float literal * [julia] Match hex float literals * [julia] Test more non-numerical literal expressions * [julia] Tag types in type contexts * [julia] Identify console via `julia-repl` as well * [julia] Be more conservative in identifying symbols * [julia] Update example file to v1.6 `base/strings/string.jl` * Address one CI failure * Switch to non-emoji Unicode category So example Hopefully fixes pypy3 CI failure * fixup: remove duplicate operators already in DOTTED_OPERATORS_LIST * [julia] Fix backslash operator * [julia] List `true`, `false` with builtin names, not keywords
* octave: also allow percent block commentsGeorg Brandl2021-03-011-0/+9
|
* octave: add multiline commentsGeorg Brandl2021-03-011-0/+18
| | | | fixes #1726
* Rewrite Scala lexer for Scala 3 (#1694)Maxime Kjaer2021-03-0117-0/+220
|
* Provide (all?) Matlab built-ins (#1705)Alex Povel2021-02-144-5/+5
| | | | | | | * Add (all?) Matlab built-ins See also https://de.mathworks.com/help/matlab/referencelist.html * Adjust pytest goldens
* Regenerate test files.Matthäus G. Chajdas2021-02-072-0/+2
| | | | This adds a newline and makes sure the files round-trip correctly.
* Improve Kotlin lexer (#1699)Ilya Zorin2021-02-068-24/+81
|
* Fix for lexing J operator ? (#1700)amitkummer2021-02-062-0/+17
| | | | | * Add J lexer tests for operator ? * Make J lexer match ? as an operator
* MATLAB parser cleanup & fix for parsing `1./x` (#1673)Antony Lee2021-02-061-0/+10
| | | | | | | | | * 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-061-0/+21
| | | | LESS lexer didn't handle single-line comments.
* Merge branch 'master' of https://github.com/mathiasertl/pygments into ↵Matthäus G. Chajdas2021-01-305-2/+52
| | | | | | | | | mathiasertl-master Resolve conflicts, move tests to snippets, regenerate example files. # Conflicts: # tests/test_shell.py
* Fix mishandling '*/' in C/C++ and related (fixes #1695)Georg Brandl2021-01-291-0/+31
|
* Rename "tests/lexers" to "tests/snippets" and update the contributionGeorg Brandl2021-01-20319-0/+7663
docs to point to both snippets and examplefiles.