Carlos Henrique Guardão Gandarez
a566061e65
Add set text analyser for MySQL lexer
2021-05-19 08:20:08 +10:00
Ville Skyttä
d964e7c774
pygments2chroma updates ( #509 )
2021-05-19 08:15:25 +10:00
Vukašin Manojlović
9391121b92
Add Metal lexer
2021-05-19 08:14:24 +10:00
Ville Skyttä
b5d03c0079
feat(regexlexer): compile in RE2 compatibility mode
...
To better match vanilla Go regexps and support some additional
constructs that might be present in Pygments rules.
https://github.com/dlclark/regexp2#re2-compatibility-mode
2021-05-17 14:09:19 +10:00
Ville Skyttä
4d45300557
feat(lexers/c): associate with XBM and XPM
2021-05-13 09:58:16 +10:00
Ville Skyttä
14a8abad48
feat(lexers): match filenames ignoring trailing .in
...
The .in suffix is often assiociated with build system input/template
files, for example in autotools ones.
2021-05-13 09:57:52 +10:00
Siavash Askari Nasr
2bcdf19ee2
[doom-one] Change style of NameAttribute
...
it was close to operator's color
2021-05-11 22:51:48 +10:00
Siavash Askari Nasr
33faf5576d
Improve fish
lexer. Add syntax highlighting for commands
...
- Commands are syntax highlighted as functions
- Command options are highlighted as attributes
- Added more built-ins and operators
- Added Hashbang
- Added and improved syntax highlighting for function, variable and
keywords
- Added test files
2021-05-11 22:51:06 +10:00
Alec Thomas
35539cf059
gofmt
2021-05-11 13:06:37 +10:00
Ville Skyttä
465a27c08a
cmd: --fail earlier without reading entire input files ( #502 )
2021-05-11 11:03:16 +10:00
Ville Skyttä
e87e5b2208
cmd: add optional silent fail mode on no specific lexer
...
Makes use of chroma easier in/as less(1) preprocessors.
https://manpages.debian.org/less#INPUT_PREPROCESSOR
export LESSOPEN='| p() { chroma --fail "$1" || cat "$1"; }; p "%s"'
https://manpages.debian.org/lesspipe#USER_DEFINED_FILTERS
ln -s ~/go/bin/chroma ~/.lessfilter
2021-05-09 08:46:49 +10:00
Siavash Askari Nasr
2e23e7f215
regexp2 uses number of group as its name so name check isn't needed
2021-05-08 18:48:49 +10:00
mlpo
1b7d2dd620
Update Python lexers and add tests for them
2021-05-08 18:18:27 +10:00
mlpo
ff6eedba72
Fix: sort words in descending order of length before regex generation ( #496 )
...
* Fix: sort words in descending order of length before regex generation
* Avoid code duplication in Raku lexer
2021-05-08 09:10:18 +10:00
Siavash Askari Nasr
225e1862d3
Pass *LexerState
as context to emitters
...
Useful for accessing named capture groups and context set by
`mutators` and other field and methods LexerState provides.
2021-05-07 22:55:54 +10:00
Yang Zhang
2cc8645d62
Add FortranFixedLexer
2021-05-07 08:47:10 +10:00
mlpo
312be634e4
Allow several tests for a same lexer
2021-05-07 08:42:53 +10:00
Siavash Askari Nasr
dcfd826b25
Add support for named capture groups
2021-05-06 21:34:28 +10:00
Ville Skyttä
15f2498398
lexers: add one for groff
...
Generated from Pygments one, some filename extensions added.
2021-05-06 10:08:01 +10:00
mlpo
8bba42c1ff
Update mimetypes in Python lexers
2021-05-05 16:59:58 +10:00
mlpo
515a389ccc
gofmt
2021-05-05 14:44:48 +10:00
mlpo
ba03a8b276
Use Python 3 by default
2021-05-05 14:44:48 +10:00
Alec Thomas
929f473220
gofmt
2021-05-05 08:57:55 +10:00
Ville Skyttä
b3d969cafc
python: add *.pyi
2021-05-05 08:18:23 +10:00
Ville Skyttä
d489fc36e3
systemd: add more filename globs
2021-05-05 08:18:02 +10:00
Ville Skyttä
e424fed5dc
lexers: match by known backup filename suffixes
2021-05-05 08:17:00 +10:00
D Anzorge
386cc48f1a
toml: allow - in keys
2021-05-03 14:17:10 +10:00
Siavash Askari Nasr
72795c5f9f
Add test for methodop .&
2021-05-02 19:26:55 +10:00
Siavash Askari Nasr
ad7162c37b
Some bug fixes for Raku lexer
2021-05-02 19:26:55 +10:00
Siavash Askari Nasr
f6d1db5fa5
Change some colors, Add a new variation
2021-05-02 17:24:08 +10:00
Siavash Askari Nasr
1231145de8
Add doom-one style
2021-05-02 17:24:08 +10:00
Stephen Afam-Osemene
d6bdd14670
sort lexers with lower case
2021-05-02 17:23:18 +10:00
Siavash Askari Nasr
373b6b7849
Fix SCSS properties, add missing operator and keywords
2021-04-29 23:01:28 +10:00
Alec Thomas
a09abba7fc
Update golangci-lint so we can force use of LazyLexer.
2021-04-29 12:10:06 +10:00
Alec Thomas
7e282be495
Update golangci-lint so we can force use of LazyLexer.
2021-04-29 12:08:28 +10:00
Cameron Moore
f3874594e7
Convert raku to lazy lexer ( #479 )
2021-04-29 11:54:41 +10:00
JamesColeman-AH
15b75a69b8
File name matches and mime matches should be moved to phtml from php lexer ( #477 )
2021-04-29 06:55:55 +10:00
Siavash Askari Nasr
d4eca2a5b3
Svelte Lexer Improvements ( #478 )
2021-04-28 17:34:34 +10:00
Alec Thomas
3626d89d3e
Fix lint.
2021-04-28 09:59:01 +10:00
Vukašin Manojlović
575caac139
Improve lexer for Solidity
2021-04-28 09:56:06 +10:00
Vukašin Manojlović
cab6ebcf1b
Add basic lexer for Svelte
2021-04-28 09:54:44 +10:00
Zhangyuan Nie
e86123a191
better markdown lexer
2021-04-28 08:56:27 +10:00
Siavash Askari Nasr
9de08fc6c8
Add Raku lexer ( #476 )
2021-04-28 08:55:14 +10:00
Alec Thomas
c44c690de2
Switch chromad to go:embed and show version.
v0.9.1
2021-04-25 08:25:51 +10:00
Alec Thomas
7410d4a2dc
Update chromad modules.
2021-04-25 08:07:12 +10:00
Alec Thomas
f235772881
Update Slack link.
v0.9.0
2021-04-25 08:02:56 +10:00
Pablo Seminario
9866a75161
Fix a typo into the lables regex for PromQL lexer
...
The correct label matching operator is `!~` instead of `~!`.
2021-04-25 08:01:36 +10:00
Pablo Seminario
b790655195
Fix PromQL lexer to support values enclosed within single quotes
...
Values for labels could now be enclosed within single or double quotes.
2021-04-25 08:01:36 +10:00
Guillermo León
d11bdacff4
Add AL lexer
2021-04-24 08:00:45 +10:00
jmert
f4cddf039f
Update Julia syntax highlighting from pygments ( #472 )
2021-04-18 14:00:13 +10:00