summaryrefslogtreecommitdiff
path: root/tests/snippets
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.