| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
| |
Also fix a broken link and decode as UTF8 in count_token_references.py.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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.
Co-authored-by: Jean Abou Samra <jean@abou-samra.fr>
|
|
|
|
| |
Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
|
|
|
|
|
| |
DotNet lexer works with LibreOffice Basic, OpenOffice Basic, and StarOffice Basic.
* Update _mapping.py
|
| |
|
|
|
|
|
|
|
|
|
| |
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
* 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
* Editorial change: correcting underline
* Moving keywords and standard types to separate Ada builtins file
* Adding separate AdaLexer to the list
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
/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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| | |
|
|\ \ |
|
| |\ \
| | |/ |
|
| | | |
|
|/ / |
|
|/ |
|
| |
|
| |
|
| |
|
|\
| |
| |
| | |
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
|