summaryrefslogtreecommitdiff
path: root/tests/examplefiles
Commit message (Collapse)AuthorAgeFilesLines
* Update Fennel keywords to catch up to version 0.6.0.Phil Hagelberg2020-09-071-44/+90
| | | | | | Remove support for single-quoted strings. Update fennelview example to latest version of library.
* Overhaul the MySQL lexer (#1527)Kurt McKee2020-09-061-0/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Overhaul the MySQL lexer Fixes #975, #1063, #1453 Changes include: Documentation ------------- * Note in the lexer docstring that Oracle MySQL is the target syntax. MariaDB syntax is not a target (though there is significant overlap). Unit tests ---------- * Add 140 unit tests for MySQL. Literals -------- * Hexadecimal/binary/date/time/timestamp literals are supported. * Integer mantissas are supported for scientific notation. * In-string escapes are now tokenized properly. * Support the "unknown" constant. Comments -------- * Optimizer hints are now supported, and keywords are recognized and tokenized as preprocessor instructions. * Remove nested multi-line comment support, which is no longer supported in MySQL. Variables --------- * Support the '@' prefix for variable names. * Lift restrictions on characters in unquoted variable names. (MySQL does not impose a restriction on lead characters.) * Support single/double/backtick-quoted variable names, including escapes. * Support the '@@' prefix for system variable names. * Support '?' as a variable so people can demonstrate prepared statements. Keywords -------- * Keyword / data type / function are now in a separate, auto-updating file. * Support 25 additional data types (including spatial and JSON types). * Support 460 additional MySQL keywords. * Support 372 MySQL functions. Explicit function support resolves a bug that causes non-function items to be treated as functions simply because they have a trailing opening parenthesis. * Support exceptions for the 'SET' keyword, which is both a datatype and a keyword depending on context. Schema object names ------------------- * Support Unicode in MySQL schema object names. * Support parsing of backtick-quoted schema object name escapes. (Escapes do not produce a distinct token type at this time.) Operators --------- * Remove non-operator characters from the list of operators. * Remove non-punctuation characters from the list of punctuation. * Cleanup items based on feedback * Remove an unnecessary optional newline lookahead for single-line comments
* Add lexer for PsySH console for PHP (#1438)Ben Ramsey2020-09-041-0/+47
| | | | | This lexer is based on the PythonConsoleLexer and provides the ability to highlight console input and output for PsySH, a developer console and REPL for PHP. See https://psysh.org.
* Add lexer for Pointless (#1494)Avery N. Nortonsmith2020-08-231-0/+30
| | | | | | | | | | | | | | | | | | | * add lexer for pointless * lexer docstring formatting * added link to languages doc * update authors * update version * added double string * added upval keyword * simplify ptls example code * rename doubleString -> multiString
* Added BARE schema lexer (#1488)Martijn Braam2020-08-221-0/+43
|
* Add a PromQL lexer (#1506)Pablo SEMINARIO2020-08-191-0/+8
| | | Including tests and an example.promql file.
* Update for Csound 6.15.0 (#1509)Nate Whetsell2020-08-171-1/+1
| | | | | * Update for Csound 6.15.0 * Update comment
* Add Arrow lexer (#1481)Ken2020-06-211-0/+60
| | | | | | | * Add Arrow lexer * Pass tests: raw string for regex * Make requested changes
* add Singularity lexer (#1285)Georg Brandl2020-06-011-0/+45
| | | Co-authored-by: Bryton Hall <email@bryton.io>
* Add GDScript lexer (#1457)Paweł Fertyk2020-06-011-0/+77
| | | | | | | | | | | | | | | | | | | | | * Added GDScript lexer * Fix regular expressions in GDScript lexer * Update GDScript lexer with the current version from Godot docs * Add tests for GDScript lexer * Update authors * Add an example file for GDScript * Implement analyze_text for GAP and GDScript * Fix example file name in tests * Update license Co-authored-by: Daniel J. Ramirez <djrmuv@gmail.com>
* Update `Inform6Lexer` to Inform 6.34 (#1461)David Corbett2020-05-261-11/+19
|
* Add lexer for Devicetree language (#1434)Maxime Chretien2020-05-261-0/+164
| | | | | | | | | | | | | | | | | | | * Add lexer for Devicetree language Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com> * Devicetree lexer: fix random input test error Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com> * Devicetree lexer: fix example file reference Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com> * Devicetree lexer: Reduce example file size Also add some missing language elements Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
* Add support for .tid files (TiddlyWiki5) (#1390)Max2020-05-241-0/+72
| | | | | | | | | | | * add support for .tid files (TiddlyWiki5) * add lexers/_mapping.py * markup.py: change versionadded of TiddlyWiki5Lexer to 2.7 * markup.py, TiddlyWiki5Lexer: use non-greedy matcher for table headers, footers, captions and classes * markup.py, TiddlyWiki5Lexer: make timestamps of type Number.Integer
* Add lexer for YANG 1.1 (#1408)GRIBOK2020-04-131-0/+64
| | | | | | | | | | | | | | | | | | | * Add yang lexer for issue pygments/pygments#1407 * fix copyright statement * adjust examplefile for yang * fix to avoid duplicate code in lexer * add more testcases for yang lexer * simplify yang lexer * simplify default rule in yang lexer * change example yang file * add version to yang lexer
* Add execline lexer (#1393)Molly Miller2020-04-101-0/+37
| | | | | | | | | | | | | | | | | * Implement lexer for execline. This commit introduces a lexer for Laurent Bercot's execline scripting language (https://skarnet.org/software/execline) based on Pygments' existing bash lexer, with some minor adaptations for execline's variable naming rules. * Add versionadded note and website link to execline lexer. * Add execline to languages.rst and example execline script * Explicitly mark non-special characters in execline lexer as Text * Correct execline lexer version addded Co-authored-by: Molly Miller <sysvinit@users.noreply.github.com>
* A lexer for F*, an ML dialect for program verification (#1409)Denis Merigoux2020-04-101-0/+1416
| | | | | | | | | | | | | | | | | | | * A lexer for F*, an ML dialect for program verification * Fix treatment of infix applications, e.g. * Correct modifications * Better lexing * Added F* to the list of supported languages * Add example file * Bumped versionadded field * Added link to language Co-authored-by: Jonathan Protzenko <jonathan.protzenko@gmail.com>
* Add Typographic Number Theory lexer (#1414)Ken2020-04-101-0/+81
| | | | | | | | | * Add Typographic Number Theory lexer Originally tried to use RegexLexer, but the structure of TNT is too rigid for it to handle. Went with a direct parser instead. Co-authored-by: lonetwin <steve@lonetwin.net>
* Lean: update to Lean 3Bryan Gin-ge Chen2020-03-141-215/+207
| | | | From the fork at https://bitbucket.org/gebner/pygments-main/src/default/
* Add ReasonML lexer. (#1386)Florian Hammerschmidt2020-02-291-0/+70
|
* Add support for the MiniScript embedded scripting language.JoeStrout2020-02-201-0/+286
|
* Add lexer for LLVM's MIR format (#1361)Daniel Sanders2020-01-241-0/+32
| | | | | | | | | | | | | | | | | | MIR is a human readable serialization format that's used to represent LLVM's machine specific intermediate representation. It allows LLVM's developers to see the state of the compilation process at various points, as well as test individual pieces of the compiler. Our documentation for the format can be found at https://llvm.org/docs/MIRLangRef.html. Adding a lexer for this format will allow the LLVM documentation to contain syntax highlighted examples of LLVM-MIR. Two lexers are included in this change. 'llvm-mir' lexes the overall document format and delegates to 'llvm' and 'llvm-mir-body' as appropriate. 'llvm-mir-body' lexes the contents of the 'body:' attribute and can be used directly to syntax highlight code examples without including the document boilerplate. Since the 'llvm-mir' lexer delegates to the 'llvm' lexer at times, this change also adds the 'immarg' and 'willreturn' keywords to the 'llvm' lexer as these were missing.
* Merge branch 'master' into 671/upsuper/webidlMatthäus G. Chajdas2020-01-076-0/+418
|\ | | | | | | This allows us to resolve the merge conflict properly.
| * Add Sieve lexer (#1257)sblondon2020-01-041-0/+56
| | | | | | | | Add Sieve lexer
| * haskell: Fix highlighting of promoted type operators (#1347)Xia Li-yao2019-12-301-0/+3
| | | | | | | | | | | | | | * haskell: Fix highlighting of promoted type operators Fixes issue #527 Patch originally written by paamayim
| * This commit adds a lexer for linux kernel logs as outputted by `dmesg`martijn@msi.localhost2019-12-091-0/+52
| | | | | | | | | | | | | | | | It supports output from `dmesg`, in that case it highlights based on keywords in the line It can also highlight `dmesg -x` output. In that case it uses the loglevels from the kernel to highlight the lines.
| * Add keywords, define types and operators. Remove parameters. Delete test ↵jcmuel2019-12-082-169/+31
| | | | | | | | file with incompatible license.
| * Add Mosel lexer.German Riano2019-12-082-0/+172
| |
| * Add USD lexer (#1290)Georg Brandl2019-12-061-0/+151
| |\ | | | | | | Add USD lexer
| | * Added extra composition arcs and Prims to example.usdColin Kennedy2019-12-011-0/+61
| | |
| | * Renamed example.usda to example.usdColin Kennedy2019-12-011-0/+0
| | |
| | * Added test_usda.py and example.usdaColin Kennedy2019-11-301-0/+90
| | |
| * | Ride: fixup style, add example file and changelog entryGeorg Brandl2019-12-011-0/+122
| |/
* | Add Web IDL lexerXidorn Quan2019-11-281-0/+1269
|/
* Fix unicode characterFaustino Aguilar2019-11-281-2/+2
|
* Update test.cr to match latest crystal syntaxFaustino Aguilar2019-11-281-560/+246
|
* Add terraform keywords module, data, output, and othersGeoffrey Grosenbach2019-11-281-62/+78
| | | | | | | | | | | | | Includes: - module - data - output - terraform - config - backend - tags Also includes example.tf with usage of these keywords.
* Merge pull request #1277 from jjatria/praat-interpolationMatthäus G. Chajdas2019-11-261-9/+73
|\ | | | | Improve detection of Praat interpolated variables
| * Improve detection of Praat interpolated variablesJosé Joaquín Atria2019-11-251-9/+73
| | | | | | | | Changes squashed / updated from https://bitbucket.org/birkenfeld/pygments-main/pull-requests/586
* | Add Solidity lexer.Georg Brandl2019-11-261-0/+74
| | | | | | | | Fixes #1214
* | Add Notmuch lexerDaniel Santana2019-11-261-0/+15
| |
* | Add Zeek lexer based on the Bro lexerJon Siwek2019-11-251-0/+181
|/ | | | | | | Bro has been renamed to Zeek, but the language is essentially the same without any different treatment of .zeek files from .bro files. This change also adds general improvements to the lexer.
* Add Lexer for scdocStefan Tatschner2019-11-251-0/+197
| | | | | | | | | | The scdoc markup language is increasingly used by the Wayland community for writing manpages. Examples are: * https://git.sr.ht/~sircmpwn/scdoc/tree/master/scdoc.5.scd * https://github.com/swaywm/sway/blob/master/sway/sway.1.scd * https://github.com/swaywm/swayidle/blob/master/swayidle.1.scd * https://git.sr.ht/~sircmpwn/aerc/tree/master/doc/aerc-tutorial.7.scd
* Add E-mail and MIME lexer (#1246)Tzu-ting2019-11-162-0/+126
| | | | Add MIME lexer with tests.
* Update for Csound 6.13.0Nathan Whetsell2019-11-102-0/+2
|
* Add lexer for ShExCLucas Werkmeister2019-07-201-0/+20
| | | | | | | | | | | | | | | | | ShExC [1] is one syntax for the ShEx (shape expressions) language [2] to describe the structure of RDF graphs (the other two syntaxes are based on JSON-LD and RDF and don?t need special lexers). It is syntactically similar to SPARQL, which is why a lot of the productions of ShExCLexer are copied from SparqlLexer, but at the same time has enough differences that I feel it?s better to simply copy the productions rather than trying to share them between the two lexers (compare e.?g. PN_LOCAL_ESCAPE_CHARS or IRIREF). The example file purports to be a brief schema for Pygments lexers, which I put together from scratch to avoid licensing issues with existing example schemas; it should not be taken too seriously. [1]: https://shex.io/shex-semantics/#shexc [2]: https://shexspec.github.io/primer/
* Added lexer for Zig programming language and test file.Stephen2019-05-231-0/+263
|
* Merged in sgarnotel/pygments-main (pull request #785)Matth?us G. Chajdas2019-04-301-0/+94
|\
| * Add FreeFem++ lexersgarnotel2018-11-271-0/+94
| |
* | Update apache2.conf sample, CHANGES.Matth?us G. Chajdas2019-04-301-0/+5
| |
* | Merged in kurtmckee/pygments-main/support-tera-term (pull request #749)Anteru2019-04-301-0/+34
|\ \ | | | | | | | | | Support Tera Term macro language