summaryrefslogtreecommitdiff
path: root/tests/examplefiles
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * | Support the Tera Term macro languageKurt McKee2018-01-281-0/+34
| | | | | | | | | | | | | | | | | | The patch modifies the Turtle parser in rdf.py, which uses the same file extension. A unit test file is included.
* | | Merged in andrescarrasco/pygments-main/boa (pull request #756)Anteru2019-04-3023-510/+1850
|\ \ \ | | | | | | | | | | | | Add a lexer for the Boa Domain-Specific Langauge.
| * \ \ Merged in Praetonus/pygments-main/pony (pull request #627)Anteru2019-04-3025-510/+1922
| |\ \ \ | | | | | | | | | | | | | | | Add lexer for the Pony language
| | * \ \ Merged in gerph/pygments-main (pull request #806)Anteru2019-04-306-1/+959
| | |\ \ \ | | | | | | | | | | | | | | | | | | Create a Lexer class for BBC Basic files.
| | | * | | Add example TOML fileFrederik ?Freso? S. Olesen2019-04-011-0/+181
| | | | | | | | | | | | | | | | | | | | | | | | Based on https://github.com/toml-lang/toml/blob/master/README.md
| | | * | | Add lexers for DASM16, Augeas, TOML, and SlashFrederik ?Freso? S. Olesen2019-03-31437-0/+123160
| | | / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lexers copied unmodified from https://github.com/liluo/pygments-github-lexers which is available under a 2-clause BSD license (same as pygments), copyright 2012 to GitHub, Inc. Fixes #1391 and #1150.
| | * | | Create a Lexer class for BBC Basic files.Charles Ferguson2019-03-141-0/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Lexer class for BBC Basic handles both the numbered lines, and unnumbered lines, of the detokenised (text) format of BBC BASIC. The tokeniser copes, in a naive manner, with the orignal versions, and BASIC V. It does not handle other extensions at this time, nor does it handle inline assembler. This should be sufficient for most cases where code needs to be presented in a colourful manner.