| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\
| |
| |
| | |
https://github.com/zaibacu/pygments into zaibacu-master
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* lexers: add Elpi
* test: elpi
* Fix copyright
* address code review
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
* New lexer for Sophia contracts
* Whitespacee should be Text.Whitespace
* Update golden files
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
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
* add an example file that tests architecture dependent keys
* fix module name underline
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
|\ \
| | |
| | | |
Add a lexer for the sed scripting language
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| | | |
| | | | |
enhance: support vagrantfile
|
| |/ / |
|
|\ \ \
| | | |
| | | | |
Add kshrc to the shell lexer
|
| |/ / |
|
|/ /
| |
| |
| | |
fixes #1962
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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>
|
| | |
|
|\ \
| | |
| | |
| | | |
scop-feat/ascii-armored
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
|
|\ \ \
| | | |
| | | |
| | | | |
cltrudeau-master
|
| | | |
| | | |
| | | |
| | | |
| | | | |
- renamed nodecon to nodejsrepl
- removed bad mimetypes
|
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
|
| | |
| | |
| | |
| | | |
This reverts commit 710cac79c34412e551a4a92bcd7dd07d5d770922.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
* encased keywords in 'words' function
added link to language reference
* added additional word functions
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
* add more unit file names
* make mapfiles
Co-authored-by: Aku Viljanen <aku.viljanen@puheet.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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 a Meson language lexer
* update the mappings
* Add meson to the list of supported languages
* Add a meson.build example file
|
| | | |
|
|/ / |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
* LighttpdConfLexer: add lighttpd.conf filename
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
* Add NestedText to list of supported languages
* Add some more test cases
* Update tests.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
* fix an indent
* convert tests, fix version, alias
* fix examplefile
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
* 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
* 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
|