| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
(#1715)
* [julia] Update operators, keywords, and literal lists
* [julia] Support symbol macros
* [julia] Parse '..' operator juxtaposed with integers
* [julia] Identify Symbol literals
* [julia] Consume strings/commands faster & add triple-quoted command
* [julia] Support identifying operators with custom suffixes
* [julia] Add parsing for raw strings
* [julia] Share definition of interpolation
* [julia] Identify escaped ` and $ in commands
* [julia] Support non-standard string and commmand literals with flags
* [julia] Support variable names with interior exclamations
* [julia] Fix matching floats starting with decimal
* [julia] Compress nearly duplicate number matches with optional group
* [julia] Match double-underscored float literal
* [julia] Match hex float literals
* [julia] Test more non-numerical literal expressions
* [julia] Tag types in type contexts
* [julia] Identify console via `julia-repl` as well
* [julia] Be more conservative in identifying symbols
* [julia] Update example file to v1.6 `base/strings/string.jl`
* Address one CI failure
* Switch to non-emoji Unicode category So example
Hopefully fixes pypy3 CI failure
* fixup: remove duplicate operators already in DOTTED_OPERATORS_LIST
* [julia] Fix backslash operator
* [julia] List `true`, `false` with builtin names, not keywords
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Add CDDL lexer (thanks to Fabian Neumann)
* Add CDDL to mappings
* Fix inline flag in CDDL regex
* Update AUTHORS
* Fix explosive backtracking
* Comment invalid CDDL syntax for automated tests
* Update following Georg Brandl's review
* Update tests for CDDL to new framework
* Pylint pass
* Update links to CDDL RFC
* Update copyright header
* Solve regexlint issues in CDDL parser
* Add link to CDDL in documentation
|
| |
| |
| |
| |
| |
| |
| | |
Imported from:
https://github.com/nikeee/pygments-lexer-graphviz
See:
https://github.com/pygments/pygments/issues/731
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
RawTokenLexer was broken until 2.7.4, so it seems pretty much unused,
and it led to tracebacks when the "raw" alias was used from some
markup that allows specifying a language alias.
We'll still keep the class for special usage as intended.
Co-authored-by: Matthäus G. Chajdas <Anteru@users.noreply.github.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* This commit implements a basic lexer for the AMDGPU ISA definition.
* Updated comment.
* Updated comment.
* Tried to fix case-sensitive issue.
* Updated AUTHORS file.
* Added shader unit test for the AMD ISA Parser.
* Renamed AMDGCN lexer to AMDGPU.
* Renamed example file.
* Renames.
Co-authored-by: Thomas Symalla <root@SEUCHOMAT.localdomain>
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
pyupgrade is a tool to automatically upgrade syntax for newer versions
of the Python language.
The project has been Python 3 only since
35544e2fc6eed0ce4a27ec7285aac71ff0ddc473, allowing for several cleanups:
- Remove unnecessary "-*- coding: utf-8 -*-" cookie. Python 3 reads all
source files as utf-8 by default.
- Replace IOError/EnvironmentError with OSError. Python 3 unified these
exceptions. The old names are aliases only.
- Use the Python 3 shorter super() syntax.
- Remove "utf8" argument form encode/decode. In Python 3, this value is
the default.
- Remove "r" from open() calls. In Python 3, this value is the default.
- Remove u prefix from Unicode strings. In Python 3, all strings are
Unicode.
- Replace io.open() with builtin open(). In Python 3, these functions
are functionally equivalent.
Co-authored-by: Matthäus G. Chajdas <Anteru@users.noreply.github.com>
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The output from pygments.lexers.get_all_lexers() contains 'juttle'
twice in the aliases section for the Juttle lexer entry.
This could be reproduced using:
>>> from pygments.lexers import get_all_lexers
>>> lexers = get_all_lexers()
>>> {alias[0]: alias[1] for alias in lexers}.get('Juttle')
('juttle', 'juttle')
This patch fixes the duplicate entry and generates the associated
_mapping.py file.
Fixes: #1604
|
| |
| |
| |
| | |
fixes #1600
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add analyze_text to make make check happy.
This also fixes a few small bugs:
* Slash uses *.sla as the file ending, not *.sl
* IDL has endelse, not elseelse
* Improve various analyse_text methods.
* Improve various analyse_text methods.
* Make Perl less confident in presence of :=.
* Improve brainfuck check to not parse the whole input.
* Improve Unicon by matching \self, /self
* Fix Ezhil not matching against the input text
* Simplify Modula2::analyse_text.
|
| |
|
|
|
|
|
| |
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
* 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
|
| |
|
|
|
| |
Including tests and an example.promql file.
|
|
|
|
|
|
|
| |
* Add Arrow lexer
* Pass tests: raw string for regex
* Make requested changes
|
|
|
| |
Co-authored-by: Bryton Hall <email@bryton.io>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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)
* 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
|
|
|
|
|
|
| |
In the linux source code a lot of files are named Kconfig.debug and
there are also other derivatives like Kconfig.x86 or Kconfig-nommu
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
|
|
|
|
| |
fixes #1433
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
* 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
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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove Python 2 compatibility
* remove 2/3 shims in pygments.util
* update setup.py metadata
* Remove unneeded object inheritance.
* Remove unneeded future imports.
|
| |
|
| |
|
|
|
|
|
|
| |
* Support for *.eex files in ElixirLexer
* update lexer mapping
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
* Add a PEG (Parsing Expression Grammar) lexer
* Add PEG to doc/languages.rst and indicate version
|
|\
| |
| |
| | |
This allows us to resolve the merge conflict properly.
|
| |
| |
| |
| | |
Add Sieve lexer
|
| |
| |
| |
| | |
Perl6/Raku update adds new file extensions, so regenerate the file mapping.
|
| |
| |
| |
| |
| |
| | |
* move to textfmts.py where other logfiles are
* fix detection of dmesg -x (heuristic "unknown" state must be last)
* change styles for debug/warn lines
|
| |
| |
| |
| |
| |
| |
| |
| | |
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 USD lexer
|
| | |\ |
|
| | | | |
|
| | | | |
|
| | |/
| |/| |
|