summaryrefslogtreecommitdiff
path: root/tests/examplefiles
Commit message (Collapse)AuthorAgeFilesLines
* all: convert "re" to "regex"regexGeorg Brandl2022-10-271-4/+4
|
* Add support for Arturo language (#2259)RickBarretto2022-10-262-0/+3021
|
* C#: recognize Operators as such, fix split-up numeric literalsGeorg Brandl2022-10-222-96/+84
| | | | Fixes #2256
* Add fift language (#2249)Dan Volkov2022-09-292-0/+479
|
* Add tl-b lexer (#2247)Dan Volkov2022-09-262-0/+10163
|
* Fix: Issues with .properties format using whitespace delimited key (#2241)jmzambon2022-09-252-37/+89
| | | | | | | | | Added: - support for space delimitor in every case, included multiline value - check for odd number of backslash escapes - "!" as comment start - support for escape of spaces and separators Dropped: - undocumented ";" and "//" comment start
* Improve Clay, Autohotkey lexers. (#2248)Matthäus G. Chajdas2022-09-252-103/+5
| | | Merge consecutive tokens together where possible.
* Updates from review.Aaron Bentley2022-09-251-35/+35
|
* Add Jsonnet supportAaron Bentley2022-09-252-0/+771
|
* Update nimrod.py lexer (#1970)matkuki2022-09-243-2657/+2644
| | | Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
* Add World of Warcraft TOC file lexer (#2244)Tim Martin2022-09-218-0/+651
| | | Also fix a broken link and decode as UTF8 in count_token_references.py.
* Adding MIPS Lexer (#2228)davisrichard4372022-09-212-0/+422
|
* Add func lexer (#2232)Dan Volkov2022-09-182-0/+481
|
* Fix syntax highlighting of INI language (#2217)jmzambon2022-09-152-4/+41
| | | | | Make it parse comments that are not their own line. Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
* Add Phix (#2222)Pete Lomax2022-09-152-0/+691
|
* [Spice] Add new keywords and fix bugs (#2227)Marc Auberer2022-09-132-0/+109
| | | | | | | | | | | | | * Cleanup * Add scope access operator * Add enum keyword * Update test ref * Fix bug for tokenizing number formats * Add pr to CHANGES
* Fix the lexing of Inform 6 properties and doubles (#2214)David Corbett2022-08-222-1/+26
|
* Improve NASM lexer (#2212)Fanael Linithien2022-08-192-0/+115
| | | | Adds support for SSE/AVX/AVX-512 registers and 'rel' and 'abs' address operators.
* Add GAP console session mode (#2211)Max Horn2022-08-196-0/+1768
| | | | | | | | | | * Add GAP console session mode This is also appropriate for GAP .tst files. Add `analyse_text` methods for `ScilabLexer` and `GAPConsoleLexer` to distinguish Scilab and GAP .tst files * Use explicit name for 'keepends' argument to splitlines
* CFamilyLexer: Fix matching of function parameters (#2210)amitkummer2022-08-182-1/+90
| | | | | | | | | | | | | | This fixes an issue where in code like this: ``` int foo(float bar) // hello() {} ``` The lexer would match `(float bar) // hello()` as the parameters of the function `foo`, instead of just `(float bar)`. In addition, a similar test case to what was originally reported in #2208 is added.
* CFamilyLexer: refuse quotes between parentheses for function definitions and ↵Jean Abou-Samra2022-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | declarations (#2208) Something like id id2("){ ... }"); is no longer wrongly recognized as a "function" id id2(") { ... } "); As the difference in the tests shows, this has the unfortunate side effect that we no longer highlight something like int f(param="default"); as a function declaration, but it is hard to imagine another way to fix this (cf. “most vexing parse” problem). Fixes #2207
* Update goldens for previous commitJean Abou Samra2022-08-151-3/+3
| | | | Very sorry about this!
* Update Spice lexer (#2206)Marc Auberer2022-08-124-5/+998
|
* Fix some cases in JMESPath lexer (#2182)Álvaro Mondéjar2022-07-202-6/+72
|
* Update `Inform6Lexer` to Inform 6.40 (#2190)David Corbett2022-07-163-9/+56
|
* Added COMAL-80 language highlight. (#2180)Marc Rintsch2022-07-152-0/+696
| | | | | * Added COMAL-80 language highlight. Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
* Add lexer for JMESPath (#2175)Álvaro Mondéjar2022-07-052-0/+208
| | | | Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
* Added cartouche handling for Isabelle lexer (#2159)Dacit2022-06-286-6182/+18405
| | | Co-authored-by: Fabian Huch <huch@in.tum.de>
* Add 1.18 generics support for go lexer (#2167)Shengyu Zhang2022-06-252-0/+194
| | | | | | - Add new predeclared identifiers: `any` and `comparable` - Add new operator for type parameters: `~` and `|` Ref: https://go.dev/ref/spec
* add missing change for lilypond testsGeorg Brandl2022-06-211-192/+192
|
* Update the Tera Term golden fileKurt McKee2022-06-212-295/+79
|
* Update tests.Matthäus G. Chajdas2022-06-192-57/+5
|
* agda: allow ticks in module namesGeorg Brandl2022-06-172-2/+2
| | | | Fixes #2163
* Ada: fixing highlighting for Ada aspects (#2125)Gustavo A. Hoffmann2022-06-164-14/+542
|
* coq: Add some common keywords and improve recognition of Set and qualified ↵Xia Li-yao2022-06-113-20/+152
| | | | | | | | | 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.
* feat: add a new SqlJinjaLexer (#2148)Edgar R. M2022-06-052-0/+122
|
* nim: types shouldn't be highlighted as keywords (#2136)Miran2022-05-123-54/+127
| | | Use `Name.Builtin`.
* Ada 2022: introducing support for new syntactic additions (#2121)Gustavo A. Hoffmann2022-04-292-0/+213
| | | | | * Ada 2022: adding support for at sign * Ada 2022: adding support for square brackets * Ada 2022: introducing test for new syntactic additions
* Initial commit for MCFunction Lexer + tests (#2107)Rit2022-04-244-0/+2406
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial commit for MCFunction Lexer + tests * Apply suggestions from code review Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr> * added docstring info + fix for run ... command * remove string ending Error tokens * not working - refactor in-progress * fixed: generic property * Update pygments/lexers/mcfunction.py Co-authored-by: Georg Brandl <georg@python.org> * apply some fixes from comments * Update pygments/lexers/mcfunction.py Co-authored-by: Georg Brandl <georg@python.org> * spacing * updated tests and applied more suggestions * fixed comment regex, passes tests Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr> Co-authored-by: Georg Brandl <georg@python.org>
* Futhark: add missing tokens (#2118)Troels Henriksen2022-04-242-40/+96
| | | | Adds recognition of 'def'/'type^'/'type~' keywords and adds some missing characters to the regexes for identifiers and punctuation.
* Fix nested type name highlighting in Savi lexer. (#2110)Joe Eli McIlvain2022-04-121-2/+2
| | | | | | | | | | | | | | | | | Nested type names were being highlighted as if they were function names. Now a phrase like `Spec.Process.run` is highlighted properly as: - `Name.Class` - `Punctuation` - `Name.Class` - `Punctuation` - `Name.Function` Instead of wrongly highlighted as it was before this commit: - `Name.Class` - `Punctuation` - `Name.Function` - `Punctuation` - `Name.Function`
* Add string interpolation to the Savi lexer.Joe Eli McIlvain2022-04-042-0/+28
| | | | | | Now the Savi lexer can tokenize string interpolation inside strings, which is a new feature added to Savi since the last time this lexer was updated.
* Fix Savi highlighting for underscore/private identifiers.Joe Eli McIlvain2022-04-042-4/+4
| | | | | | | Prior to this change, every underscore/private identifier in Savi code was being highlighted as if it were a class name. After this change, only those whose first letter is uppercase will be highlighted as such, which is the correct behavior.
* Update Savi language example.Joe Eli McIlvain2022-04-042-65/+23
| | | | | The previous example shows the old usage of the testing framework. Now the example reflects the current usage/API of that framework.
* Add Macaulay2 lexer (#1791)Doug Torrance2022-03-312-0/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Macaulay2 lexer * Update symbols for Macaulay2 1.18 * Match whitespace characters in Macaulay2 lexer * Add states for strings/comments in Macaulay2 lexer * Update Macaulay2 lexer tests for string/comment edge cases * Improve comment and string matching in Macaulay2 lexer Instead of matching each character one at a time, we match all characters without special meaning together. * Update Macaulay2 test output * Update Macaulay2 lexer symbols for 1.19 release * Move "auto-generated" comment in Macaulay2 lexer down a few lines * Fix underline length in Macaulay2 lexer docstring * Add url field for Macaulay2 lexer * Bump copyright year for Macaulay2 lexer
* LilyPond: fix 'maybe-subproperties' state for properties containing dashes ↵Jean Abou-Samra2022-03-312-0/+13
| | | | (#2099)
* Add more POV-Ray operatorsPetr Zahradník2022-03-262-29/+460
|
* Add lexer for parsing Uxntal assembly code. (#2086)Erik Osheim2022-03-132-0/+5024
| | | | | | | | | | | | Uxn is a virtual machine which represents a personal computing playground, and is described here: https://100r.co/site/uxn.html Uxntal assembly language is described here: https://wiki.xxiivv.com/site/uxntal.html The demo code piano.tal is used with permission.
* CFamily: Lex identifiers after `case` as constants (#2084)amitkummer2022-03-128-175/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Lex identifiers after `case` as constants Add a state for marking identifiers preceded by a `case` keyword as constants. Additionally, refactor the `label` rule to no longer permit a `case` keyword before a label. Consequentially, identifiers after a `case` keyword (like `foo` in `case foo:`) are no longer wrongly lexed as `Name.Label`, but as `Name.Constant`. In addition, this fixes #2076, as multiple `case` keywords in one line are lexed the same. * Add test for multiple `case` keywords in one line * Fix existing tests * Lex `::` as Operator and not Name.Constant After a `case`, when lexing a namespaced name, like `foo::bar`, lex the namespace operator `::` as Operator, and not Name.Constant. * Regenerate tokens
* LilyPond: fix wrong lexing of name containing builtin name (#2071)Jean Abou-Samra2022-03-072-37/+14
| | | | | Non-builtin names were scanned character by character, possibly causing recognition of a suffix as builtin.