summaryrefslogtreecommitdiff
path: root/pygments/lexers/_mapping.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge branch 'master' of github.com:pygments/pygments; branch 'master' of ↵Matthäus G. Chajdas2021-12-281-0/+1
|\ | | | | | | https://github.com/zaibacu/pygments into zaibacu-master
| * Fix mappingŠarūnas Navickas2020-09-081-1/+1
| |
| * Initial versionSarunas Navickas2020-09-081-0/+1
| |
* | Update mappings, CHANGES.Matthäus G. Chajdas2021-12-281-1/+1
| |
* | feat(lexers): associate XBM and XPM with C code (#1802)Ville Skyttä2021-12-281-1/+1
| |
* | Lexer for new language Elpi (#1894)Enrico Tassi2021-12-121-0/+1
| | | | | | | | | | | | | | | | | | * lexers: add Elpi * test: elpi * Fix copyright * address code review
* | Finish lexer implementation for SpiceMarc Auberer2021-12-051-0/+1
| |
* | New lexer for Sophia contracts (#1974)Hans Svensson2021-11-281-0/+1
| | | | | | | | | | | | | | * New lexer for Sophia contracts * Whitespacee should be Text.Whitespace * Update golden files
* | Add support for BDD features / stories (#1803)xuan2021-11-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create BDD.py Initialize the lexer file of BDD Add keywords of BDD * Update the 'RegexLexer' * Edit and test * Update BDD.py * Update BDD.py * Update the BddLexer file * Update the BddLexer of root tokens * edit bdd Add regular expression for tokens * edit bdd Add regular expression for tokens * add .gitignore * updata bdd.lexer * Delete bdd.py * Update the Keywords, Numbers, Punctuation token * bdd.py Assign different colors to keywords, punctuation, numbers, and variables. * Update the BddLexer file * Update bdd.py Fix the file name. * Add the detection for '@' Co-Authored-By: OMGJL <8707895+OMGJL@users.noreply.github.com> * Update bdd.py Add detection of double quotes. Co-Authored-By: OMGJL <8707895+OMGJL@users.noreply.github.com> * Fix the double quotes * fix the quote recognition * add comments * update the root dir * add bdd test cases * Delete .DS_Store * Delete .DS_Store * Delete .DS_Store * remove DS file * restore the gitignore file * update the bdd lexer * update the bdd lexer * update the whitespace highlight * update the whitespace highlight * refactor the bdd.py * update the punctuation * update the punctuation * update bdd token Change "." to the "\S+", Which reduce the test output file size. Co-Authored-By: OMGJL <8707895+OMGJL@users.noreply.github.com> * Update bdd.py Reduce the new token for each space Co-authored-by: Hongyuan Yan <hongyuan.yan@student.adelaide.edu.au> Co-authored-by: OMGJL <lzhsjunkmail@gmail.com> Co-authored-by: Hongyuan Yan <54675432+kirito330824@users.noreply.github.com> Co-authored-by: Jessie2110 <71688609+Jessie2110@users.noreply.github.com> Co-authored-by: Jessie2110 <wuqiong2110@gmail.com> Co-authored-by: OMGJL <8707895+OMGJL@users.noreply.github.com>
* | Add lexer and style for LilyPond (#1845)Jean-Abou-Samra2021-11-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add lexer and style for LilyPond GNU LilyPond is a text-based music typesetter. Because its concepts are completely different from programming languages, this adds a special-purpose to highlight the special tokens. The SchemeLexer is expanded to gain the ability of detecting when one expression stops. LilyPondLexer subclasses SchemeLexer. Builtins (the most important part) are generated with a script put in external/ (as was already done for Lasso). As part of this change, the CPSALexer is made no longer to inherit from SchemeLexer. The inheritance was unused anyway. * Fixup: translators names have underscores * Fixup: avoid duplicate builtins * Fixup: update goldens * Fixup: typo * Fixup: add missing tokens to style * Fixup: update lexer comments * Fixup: Tentative style adjustments * Fixup: move test file to examplefiles/ * Fixup: miscellaneous fixes (to be finished) * Fixup: escape all braces * Fixup: use Text, not Whitespace * Fixup: fixes for lexing and style * Fixup: update goldens! * Fixup: also test alist assignments * Fixup: recognize escape sequences in strings * Fixup: use Comment.Single * Fixup: Whitespace, not Text! * Fixup: fix pitch parsing * Fixup: update comment * Fixup: remove redundant re.UNICODE
* | add a lexer for .SRCINFO files (#1951)Jendrik2021-11-211-0/+1
| | | | | | | | | | | | | | * add a lexer for .SRCINFO files * add an example file that tests architecture dependent keys * fix module name underline
* | Add lexer for the Savi language. (#1863)Joe Eli McIlvain2021-11-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | * Add lexer for the Savi language. * Updates based on review comments. * Prefer Text.Whitespace token over Text token for whitespace. * Updates to Savi lexer based on changes to Rouge Savi lexer. * Add versionadded identifier to Savi lexer.
* | Merge pull request #1935 from Mango0x45/masterMatthäus G. Chajdas2021-11-211-0/+1
|\ \ | | | | | | Add a lexer for the sed scripting language
| * | Add a lexer for the sed scripting languageThomas Voss2021-10-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sed is a stream editing scripting language forming part of the POSIX standard. This means that sed cn be found as part of any POSIX compliant OS such as Linux, MacOS, and the BSDs. This lexer supports the complete POSIX standard for sed as well as various GNU extensions. The names 'gsed' and 'ssed' may sometimes be used as part of a file extension to refer specifically to GNU sed or Super Sed, two popular implementations of sed. The sed language is rather simple, here is a quick overview: - Comments begin with a '#' and continue to the end of the line. - Commands can be prepended with a range that selects lines. This can be either a number ([0-9]+), a '$', or a regular expression. Regular expressions can either be enclosed in '/' such as /regex/ or they can be exclosed in any other character however the opening delimiter must be escaped, for example: \@regex@. - Some commands such as 'w', 'r', and 'b' take a string as a parameter, this string extends either to the next ';' or newline. - Some commands such as 'a' can take multiline strings. - Commands can be grouped with braces ('{' and '}'). - The 'y' command takes two strings as parameters, seperated by any delimiter ('y/abc/123/' or 'y|abc|123|') - The 's' command is like the 'y' command but the fist parameter is a regular expression. Additionally it takes an optional 3rd parameter which are a sequence of flags ('s|regex|replace|flags'). I chose to add support for GNU sed extensions as it is by far the most used implementation.
* | | Merge pull request #1936 from tzing/masterMatthäus G. Chajdas2021-11-211-1/+1
|\ \ \ | | | | | | | | enhance: support vagrantfile
| * | | fix: generate mapfilestzing2021-11-011-1/+1
| |/ /
* | | Merge pull request #1947 from eigilhs/add-kshrc-to-shell-lexerMatthäus G. Chajdas2021-11-211-1/+1
|\ \ \ | | | | | | | | Add kshrc to the shell lexer
| * | | Add kshrc to the shell lexerEigil Skjæveland2021-11-071-1/+1
| |/ /
* | | CSharp: add "cs" aliasGeorg Brandl2021-11-171-1/+1
|/ / | | | | | | fixes #1962
* | Add .editorconfig to IniLexer (#1932)Jawira Portugal2021-10-281-1/+1
| |
* | Lexer for new language Maxima (#1885)Robert Dodier2021-09-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * New lexer for Maxima computer algebra system * New lexer class MaximaLexer * Update _mapping.py to include Maxima lexer * New test input file maxima/foo.mac I find that the commands $ python3 -m pygments -O full -f html -o /tmp/foo.html tests/examplefiles/maxima/foo.mac $ python3 -m pygments -x -l pygments/lexers/maxima.py:MaximaLexer tests/examplefiles/maxima/foo.mac both produce expected output. * Commit output from pytest --update-goldens for Maxima example file Commit output from pytest tests/examplefiles/maxima --update-goldens as obtained by Cameron Smith. * Rename output file for test of Maxima lexer. * In Maxima lexer, capture content of comment all at once, instead of capturing each character separately. Update expected output for example input file, as produce by: $ pytest tests/examplefiles/maxima --update-goldens * In lexer for Maxima language, identify whitespace characters as such instead of just calling them Text. * In lexer for Maxima language, identify comma, semicolon, and dollar sign as Punctuation instead of Text. * In lexer for Maxima language, cut encoding comment, and put in license statement. * In lexer for Maxima language, identify keywords and other fixed strings such as operators via the words function, instead of a long regex with alternation. Incidentally update the example output, for which one symbol (namely "done") has changed classification. * In lexer for Maxima language, include additional test input and update output accordingly. * In lexer for Maxima language, relax pattern for integers, so integers are more accurately identified. Update test example output accordingly. * In lexer for Maxima language, adjust pattern for float numbers. Include additional test input for floats and update expected output. * In lexer for Maxima language, define analyse_text function. * In lexer for Maxima language, correct errors identified by make check (1) adjust package name underline (2) put in copyright notice Co-authored-by: Robert Dodier <robert_dodier@users.sourceforge.net>
* | Update mapfiles & CHANGES.Matthäus G. Chajdas2021-08-151-2/+2
| |
* | Merge branch 'feat/ascii-armored' of https://github.com/scop/pygments into ↵Matthäus G. Chajdas2021-08-081-0/+1
|\ \ | | | | | | | | | scop-feat/ascii-armored
| * | fix(AscLexer): mimetypes stray trailing commaVille Skyttä2021-05-181-1/+1
| | |
| * | feat(lexers): add ASCII armoredVille Skyttä2021-05-171-0/+1
| | |
* | | Added lexer for parsing GSQL files (#1866)DanBarkus2021-08-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added GSQL lexer * encased keywords in 'words' function added link to language reference * added additional word functions * Added copyright annotation Removed commented out string * re-built test output file * Updated words to Keywords
* | | Merge branch 'master' of https://github.com/cltrudeau/pygments into ↵Matthäus G. Chajdas2021-08-081-0/+1
|\ \ \ | | | | | | | | | | | | cltrudeau-master
| * | | Changes from code review:Christopher Trudeau2021-06-211-1/+1
| | | | | | | | | | | | | | | | | | | | - renamed nodecon to nodejsrepl - removed bad mimetypes
| * | | Add JavaScript Node.js Console LexerChristopher Trudeau2021-05-291-0/+1
| |/ /
* | | Added Smithy Lexer (#1878) (#1879)Immanuel Washington2021-08-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added Smithy Lexer (#1878) * Added Smithy Lexer * Added Smithy Lexer auhtor * Documented Smithy as a supported language * Added Smithy test file and output * Updated Smithy Lexer * Added Standard file heading with copyright and license * Used `words` method for optimization, instead of bare regex * Specified whitespace punctuation in root * Updated aliases to only contain lowercase names to pass `test_basic_api` tests * Updated regexes lightly to fit regexlint rules (removing duplicate characters in group `-`) * Fixed regexes with errors in regexlint rules (Escaping brackets, gaps in capture groups) * Ran mapping script to fix build check * Ran mapping to update after changing aliases in previous commit
* | | Revert "Added GSQL lexer (#1809)"Matthäus G. Chajdas2021-07-181-1/+0
| | | | | | | | | | | | This reverts commit 710cac79c34412e551a4a92bcd7dd07d5d770922.
* | | Add support for JSLT (#1821)João Abecasis2021-07-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | Added GSQL lexer (#1809)DanBarkus2021-07-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | * Added GSQL lexer * encased keywords in 'words' function added link to language reference * added additional word functions
* | | Update javascript lexer (#1814)Mestery2021-07-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * make ts extends js lexer * add regex's d flag for js lexers cf. https://v8.dev/features/regexp-match-indices * update js builtins, operators, exceptions * fixup! update js builtins, operators, exceptions * add typescript override keywork * Update _mapping.py
* | | use ini lexer for systemd service files (#1849)Akuli2021-07-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * use ini lexer for systemd service files * add more unit file names * make mapfiles Co-authored-by: Aku Viljanen <aku.viljanen@puheet.com>
* | | Add procfile lexer (#1808)sblondon2021-06-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add Procfile Lexer * add unit tests for ProcfileLexer * add Procfile lexer author * Document Procfile as supported language * add Procfile.output file * merge Profile files; update output file * Add versionadded info * Fix typo (processus -> processes) * detect Integer only * split Text from Whitespace
* | | Add Meson build language support (#1823)ldrumm2021-06-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a Meson language lexer * update the mappings * Add meson to the list of supported languages * Add a meson.build example file
* | | Add lexers.specials.OutputLexer. (#1836)Walter Dörwald2021-06-071-0/+1
| | |
* | | Add golang alias for the Go language (#1827)Situphen2021-05-311-1/+1
|/ /
* | Add support for elixir phoenix leex templates (#1577)Jason S2021-05-021-1/+1
| |
* | Support for OMG IDL (#1595)Fred Hornsey2021-05-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | uniformize aliases order (#1780)Mestery2021-04-261-45/+45
| | | | | | | | | | * uniformize aliases order * LighttpdConfLexer: add lighttpd.conf filename
* | Fix style problems with new lexers.Georg Brandl2021-04-161-1/+1
| |
* | Fix #1416: add WebAssembly lexer (#1564)Jendrik2021-04-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | Add NestedText lexer (#1578)Kale Kundert2021-03-211-0/+1
| | | | | | | | | | | | | | | | | | * Add NestedText lexer * Add NestedText to list of supported languages * Add some more test cases * Update tests.
* | Leading underscore in APL variable names (GNU, Dyalog) (#1747)Stefan Kruger2021-03-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | * 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-141-0/+1
| | | | | | | | | | | | | | | | | | * Add a teal lexer * fix an indent * convert tests, fix version, alias * fix examplefile
* | Added ThingsDB Language support (#1295)Georg Brandl2021-03-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | * Added ThingsDB Language support * Update ThingsDB language * add comments to syntax * Update to new test system. Co-authored-by: Jeroen van der Heijden <joente@gmail.com> Co-authored-by: Matthäus G. Chajdas <dev@anteru.net>
* | Add KuinLexer (#1300)Georg Brandl2021-03-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add KuinLexer * Add golden test output. * Update mapfiles. * Update URL. * Fix regex lint failures. Co-authored-by: tatt61880 <tatt61880@gmail.com> Co-authored-by: Matthäus G. Chajdas <dev@anteru.net>
* | Add apdl and gcode lexers (#1714)Averter2021-03-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add apdl and gcode lexers * Added requested changes except words function * Added requested changes except words function * Added words function to handle lists of keywords * Add two testing example files * Delete two_dimensional_truss.ans * Delete coupled_example.ans * Create example1apdl.ans * Create example2apdl.ans * General cleanup of apdlexer and creation of mapfiles * Escaped backslashes in string literals on apdlexer * Removed backslashes. None was necessary in the first place * Added apdl aliase and a * based command in the test file * Forgot to create the map files * Tested version. Also removed an unused function from apdlexer * Added examples for gcode and golden output * Trimming of gcode files to a few dozens of lines * Removed duplicates from elafunb