summaryrefslogtreecommitdiff
path: root/pygments/lexers
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Merge branch 'feat/ascii-armored' of https://github.com/scop/pygments into ↵Matthäus G. Chajdas2021-08-082-0/+52
|\ \ \ \ | | | | | | | | | | | | | | | scop-feat/ascii-armored
| * | | | fix(asc): use Whitespace instead of Text for whitespaceVille Skyttä2021-05-181-4/+4
| | | | |
| * | | | fix(AscLexer): mimetypes stray trailing commaVille Skyttä2021-05-182-2/+2
| | | | |
| * | | | docs(AscLexer): add versionaddedVille Skyttä2021-05-171-0/+2
| | | | |
| * | | | feat(lexers): add ASCII armoredVille Skyttä2021-05-172-0/+50
| |/ / /
* | | | Added lexer for parsing GSQL files (#1866)DanBarkus2021-08-082-0/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-082-6/+70
|\ \ \ \ | | | | | | | | | | | | | | | cltrudeau-master
| * | | | Changes from code review:Christopher Trudeau2021-06-212-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | - renamed nodecon to nodejsrepl - removed bad mimetypes
| * | | | Add JavaScript Node.js Console LexerChristopher Trudeau2021-05-292-4/+67
| |/ / /
* | | | Added Smithy Lexer (#1878) (#1879)Immanuel Washington2021-08-082-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | | Add numerical identifiers to LLVM label syntax (#1875)Bruce Collie2021-07-311-1/+2
| | | |
* | | | Java: do not lex whitespace as Label, do not lex "default" as LabelGeorg Brandl2021-07-311-1/+3
| | | | | | | | | | | | | | | | Fixes #1851
* | | | Only allow tables at line start to fix arrays. (#1872)Erik Moqvist2021-07-311-2/+4
| | | | | | | | | | | | | | | | | | | | * Only allow tables at line start to fix arrays. * Only allow tables at line start to fix arrays.
* | | | Fix #1573 (#1869)Andreas Bilke2021-07-271-1/+1
| | | | | | | | | | | | Allow $ sign in C# language for interpolated strings.
* | | | add min to analyse text for jasmin (#1619)Carlos Henrique Guardão Gandarez2021-07-241-1/+1
| | | |
* | | | Revert "Added GSQL lexer (#1809)"Matthäus G. Chajdas2021-07-182-86/+0
| | | | | | | | | | | | | | | | This reverts commit 710cac79c34412e551a4a92bcd7dd07d5d770922.
* | | | Fix #1841.Matthäus G. Chajdas2021-07-181-4/+4
| | | | | | | | | | | | | | | | Use Comment.Single/Multiline in Mako template lexer.
* | | | Add support for JSLT (#1821)João Abecasis2021-07-182-0/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-182-0/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added GSQL lexer * encased keywords in 'words' function added link to language reference * added additional word functions
* | | | Update javascript lexer (#1814)Mestery2021-07-182-123/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-182-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * use ini lexer for systemd service files * add more unit file names * make mapfiles Co-authored-by: Aku Viljanen <aku.viljanen@puheet.com>
* | | | Update Fennel lexer to include forms from latest version. (#1862)Phil Hagelberg2021-07-181-14/+17
| | | | | | | | | | | | | | | | | | | | Treat true/false/nil as constants. Also separate out declarations from other special forms and macros.
* | | | Scala lexer: Add support for the '\' operator (#1857)Luka Peschke2021-07-091-1/+1
| | | | | | | | | | | | This operator is defined by json4s, which is one of scala's most popular JSON libraries.
* | | | Support error locations in Python tracebacks (#1852)Jean-Abou-Samra2021-07-061-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support both single carets for syntax errors (Python 2 and 3) and fine-grained error locations with several carets (Python 3.11+). Previously, the carets were highlighted as operators. This uses a new token, Token.Punctuation.Marker. For now, no style supports it specifically. In the future, styles might start differentiating it from Token.Punctuation. [Closes #1850.]
* | | | Improved Rust attributes (#1813)kaivol2021-06-251-8/+2
| | | |
* | | | Update for Csound 6.16.0 (#1837)Nate Whetsell2021-06-202-16/+57
| | | | | | | | | | | | | | | | | | | | * Update for Csound 6.16.0 * Preserve removed Csound built-ins
* | | | Use Whitespace for whitespace in Tcl.Matthäus G. Chajdas2021-06-201-2/+2
| | | |
* | | | tcl lexer: no error for @ or , (#1834)Akuli2021-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * tcl lexer: no error for @ or , * examplefiles --> snippets * rename test file to convention
* | | | Remove unicorn token types (fixes #1816.)Matthäus G. Chajdas2021-06-206-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | The PR #1819 provides a tool to identify unique token types. This PR aims to remove the most obvious cases of unicorn styles which are used in a single lexer only.
* | | | Add procfile lexer (#1808)sblondon2021-06-202-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | | Use the correct whitespace token for the C family.Matthäus G. Chajdas2021-06-201-3/+3
| | | | | | | | | | | | | | | | The CFamilyLexer was matching whitespace as Text instead of Whitespace.
* | | | Fix CFamilyLexer preprocessor tokenization errors (#1830)Henrik Lievonen2021-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CFamilyLexer failed to tokenize preprocessor macros when they were preceded by line break surrounded by spaces. This was the case because prerpocessor regex rule expected to start at the beginning of the line, but the space regex rule matched also the whitespace after the line break. Now the space rule has been refined not to match the line break. Because of this, the preprocessor regex rule correctly matches prerpocessor tokens even when they are preceded by white spaces, at the cost of adding some more tokens in the token stream in some cases. This change preserves the behavior of invalid preprocessor usage failing to tokenize.
* | | | Small updates to the meson lexer.Matthäus G. Chajdas2021-06-201-1/+3
| | | |
* | | | Add Meson build language support (#1823)ldrumm2021-06-202-0/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a Meson language lexer * update the mappings * Add meson to the list of supported languages * Add a meson.build example file
* | | | Added Swift concurrency keywords (#1842)Filip Němeček2021-06-201-2/+2
| | | |
* | | | Rust: fix lexing of "break" and "continue"Georg Brandl2021-06-201-1/+1
| | | | | | | | | | | | | | | | fixes #1843
* | | | Add lexers.specials.OutputLexer. (#1836)Walter Dörwald2021-06-072-2/+16
| | | |
* | | | Correctly highlight multiline console input, even without PS2 prompt (#1833)Jesse Tan2021-06-041-4/+7
| | | |
* | | | Add golang alias for the Go language (#1827)Situphen2021-05-312-2/+2
| | | |
* | | | Update LLVM lexer to use keywords of LLVM 12.0. (#1824)Fraser Cormack2021-05-311-57/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The keywords are based on the extraction of keywords the LLVM 12.0 lexer source code. They were taken from the `KEYWORD` and `INSTKEYWORD` macros for the 'Keyword' tokens, and 'Type' tokens were from the `TYPEKEYWORD` macro. The keywords were then sorted against the current set. Due to formatting issues in the arrays, the actual Type diff is: ``` diff +x86_mmx +x86_amx ``` and the Keyword diff is: ``` diff +aarch64_sve_vector_pcs +aarch64_vector_pcs +alwaysInline +amdgpu_gfx +blockcount +byref +callbr +canAutoHide +cfguard_checkcc +dso_local_equivalent +fneg +mustprogress +nocallback +nofree +noInline +nomerge +noprofile +nosync +noundef +null_pointer_is_valid +param +params +partition +preallocated +sanitize_memtag +speculative_load_hardening +tailcc +typeidCompatibleVTable +varFlags +vcall_visibility +virtFunc +vscale +vTableFuncs +x ```
* | | | TNT: fix reliance on "assert" stmt, handle recursionGeorg Brandl2021-05-301-15/+25
|/ / /
* | | Add support for elixir phoenix leex templates (#1577)Jason S2021-05-022-2/+2
| | |
* | | groovy lexer: detect quoted function names (#1765)Alison Winters2021-05-021-6/+12
| | | | | | | | | | | | | | | | | | | | | * groovy lexer: parse keywords before function names like java * groovy lexer: detect quoted function names * changes: update groovy lexer
* | | Support Terraform 0.14 syntax (#1756)Leonardo Giordani2021-05-021-36/+93
| | | | | | | | | | | | | | | * Support Terraform 0.14 syntax * Use \S instead of [^\s]
* | | Support for OMG IDL (#1595)Fred Hornsey2021-05-023-4/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | | add "from" and "as" to js and ts keywords (#1741)Mestery2021-05-021-3/+3
| | | | | | | | | Also removed invalid "AS" from TypeScript lexer.
* | | uniformize aliases order (#1780)Mestery2021-04-2626-100/+100
| | | | | | | | | | | | | | | * uniformize aliases order * LighttpdConfLexer: add lighttpd.conf filename
* | | Improve PromQL lexer with new test cases (#1783)Pablo Seminario2021-04-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix PromQL lexer to support values enclosed within single quotes Values for labels could now be enclosed within single or double quotes. * Fix a typo into the lables regex for PromQL lexer The correct label matching operator is `!~` instead of `~!`.
* | | Detect multiline patterns in velocity lexer text analysis (#1776)Andy2021-04-171-3/+3
| | |
* | | Fix style problems with new lexers.Georg Brandl2021-04-163-34/+38
| | |