summaryrefslogtreecommitdiff
path: root/pygments/lexers/_mapping.py
Commit message (Collapse)AuthorAgeFilesLines
* Add support for Arturo language (#2259)RickBarretto2022-10-261-0/+1
|
* Add fift language (#2249)Dan Volkov2022-09-291-0/+1
|
* Add tl-b lexer (#2247)Dan Volkov2022-09-261-0/+1
|
* Add Jsonnet supportAaron Bentley2022-09-251-0/+1
|
* Add World of Warcraft TOC file lexer (#2244)Tim Martin2022-09-211-0/+1
| | | Also fix a broken link and decode as UTF8 in count_token_references.py.
* Adding MIPS Lexer (#2228)davisrichard4372022-09-211-0/+1
|
* Add func lexer (#2232)Dan Volkov2022-09-181-0/+1
|
* Add Phix (#2222)Pete Lomax2022-09-151-0/+1
|
* Add `.pyi` file to `python` lexer filenames (#2231)Nikita Sobolev2022-09-151-1/+1
|
* Add GAP console session mode (#2211)Max Horn2022-08-191-0/+1
| | | | | | | | | | * 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
* Added COMAL-80 language highlight. (#2180)Marc Rintsch2022-07-151-0/+1
| | | | | * Added COMAL-80 language highlight. Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
* Add lexer for JMESPath (#2175)Álvaro Mondéjar2022-07-051-0/+1
| | | | Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
* Update dotnet.py with _obas aliases (#2170)flywire2022-06-291-1/+1
| | | | | DotNet lexer works with LibreOffice Basic, OpenOffice Basic, and StarOffice Basic. * Update _mapping.py
* feat: add a new SqlJinjaLexer (#2148)Edgar R. M2022-06-051-0/+1
|
* Merge mapping file generation scripts (#2152)Jean Abou-Samra2022-05-291-60/+2
| | | | | | | | | Use a unified script, to reduce code duplication and in preparation for doing a similar thing with styles and filters. The new script also uses a bit more modern Python APIs (e.g., pathlib). Unlike the previous scripts, it does not replace replace CRLF with LF because Git should do that itself.
* Initial commit for MCFunction Lexer + tests (#2107)Rit2022-04-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Moving Ada Lexer to standalone module (#2117)Gustavo A. Hoffmann2022-04-241-1/+1
| | | | | | | | | * Moving Ada Lexer to standalone module * Editorial change: correcting underline * Moving keywords and standard types to separate Ada builtins file * Adding separate AdaLexer to the list
* Add lexer for colon-separated value config files like /etc/passwd, ↵Leistungsabfall2022-04-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | /etc/shadow and /etc/group (#2112) * add PasswdLexer and ShadowLexer for lexing /etc/passwd and /etc/shadow * fix regex * Update pygments/lexers/configs.py Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr> * address review comments * update _mapping.py * Create united lexer UnixConfigLexer for config files using colon-separated values, typically used in Unix/Linux system config files. * format docstring * UnixConfigLexer: add whitespace detection * add test snippets for UnixConfigLexer * address review comment Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr> Co-authored-by: Leistungsabfall <–Leistungsabfall@users.noreply.github.com>
* Register .j2 and .jinja2 file suffixes to relevant lexersPeder Bergebakken Sundt2022-04-041-5/+5
|
* Add Macaulay2 lexer (#1791)Doug Torrance2022-03-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add lexer for parsing Uxntal assembly code. (#2086)Erik Osheim2022-03-131-0/+1
| | | | | | | | | | | | 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.
* Added Berry Lexer (#2070)Beormund2022-03-071-0/+1
|
* Add UL4 lexer. (#2040)Walter Dörwald2022-03-071-0/+6
|
* Add K and Q lexers (#2073)Nick Psaris2022-03-051-0/+2
|
* Add qlik lexer (#1925)Gemma Down2022-03-041-0/+1
|
* Merge branch 'master' of github.com:pygments/pygmentsFabrizio Riguzzi2022-02-201-1/+1
|\
| * Add the file extension *.resource to the list of Robot Framework files. (#2047)Hélio Guilherme2022-01-271-1/+1
| |
* | Merge branch 'master' of github.com:friguzzi/pygmentsFabrizio Riguzzi2022-01-251-1/+1
|\ \
| * \ Merge branch 'pygments:master' into masterFabrizio Riguzzi2022-01-251-1/+1
| |\ \ | | |/
| | * Add support for .cljc clojure file extension (#2043)Danny Freeman2022-01-251-1/+1
| | |
* | | fixed test problem with cplint and regexlint problemFabrizio Riguzzi2022-01-251-1/+1
|/ /
* | in a:p a no more higlighted as a moduleFabrizio Riguzzi2022-01-221-0/+1
|/
* Fix typos (#2030)Kian-Meng Ang2022-01-181-2/+2
|
* Add .tpp as a c++ lexer file extension (#2031)HampusMat2022-01-111-1/+1
|
* Add f90 as an alias for fortran (closes #2000.)Matthäus G. Chajdas2021-12-291-1/+1
|
* 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