Pablo SEMINARIO
74f5402d5e
Update table of supported languages
v0.8.2
2020-11-12 11:03:15 +11:00
Pablo SEMINARIO
473ed23c2a
Update table.py to write changes on README.md
...
Write the up-to-date list of the supported languages directly on the
README.md file in order to avoid manual copy/paste actions.
2020-11-12 11:03:15 +11:00
Pablo SEMINARIO
c788380af6
Minor code formatting changes using Black
...
Replace single by double quotes to keep consistency.
2020-11-12 11:03:15 +11:00
Pablo SEMINARIO
eb0e31fc05
Add PromQL lexer
...
It also includes several test examples
2020-11-11 17:15:50 +11:00
Steven Penny
552ad244cf
Rust multi-line strings
...
Quoting Rust documentation
> Line-breaks are allowed in string literals. A line-break is either a newline
> (U+000A) or a pair of carriage return and newline (U+000D, U+000A).
https://doc.rust-lang.org/reference/tokens.html#string-literals
2020-11-07 07:49:09 +11:00
Alvaro Aleman
ab61726cdb
Make linkeable lines a link to themselves
...
Currently its already possible to make line lumbers linkeable. Getting
such a link however requires the end user to look at the pages source
and then to manually edit the URL, which is not a great UX.
This PR changes that to make the line numbers a link to themselves, so
clicking on them gives a link to that line that can then be passed
around, similiar to e.G. GitHub.
2020-11-03 21:31:04 +11:00
Yuki Okushi
9eb358bc3f
Update Rust keywords/types ( #419 )
...
* Remove unreserved keywords
* Add some newer keywords and types
* Harden Rust lexer test
2020-10-31 08:01:35 +11:00
nyaayaya
9b3cf51c84
zig: Detect visual separators in integer literals
...
Zig docs: "// underscores may be placed between two digits as a visual
separator"
2020-10-30 22:50:45 +11:00
zeitchef
e3a674cca9
Add base16-snazzy style
2020-10-29 19:59:52 +11:00
Alec Thomas
2735a5f95c
Agh.
2020-10-29 19:50:46 +11:00
Alec Thomas
d620d6e786
Only release on tagged versions.
2020-10-29 19:49:18 +11:00
Alec Thomas
95d002df25
CI fixes.
2020-10-29 19:45:28 +11:00
Alec Thomas
a49e74490b
Spacing.
2020-10-29 19:36:17 +11:00
Alec Thomas
37ff05cdbd
Really.
2020-10-29 19:32:06 +11:00
Alec Thomas
ee34bb8a3e
Fix README?
2020-10-29 19:24:10 +11:00
Alec Thomas
05ac2f71fd
Revert "Zig: Detect visual separators in integer literals"
...
This reverts commit d2a1cc462b640250dac9280a009269e8a8bbf917.
2020-10-29 19:23:01 +11:00
Alec Thomas
1701c8b214
Switch to Circle.
2020-10-29 19:21:20 +11:00
nyaayaya
d2a1cc462b
Zig: Detect visual separators in integer literals
...
Zig docs: "// underscores may be placed between two digits as a visual
separator"
2020-10-29 14:01:03 +11:00
Steven Penny
639fa3adc4
JavaScript: String Single Character Escape Sequences ( #415 )
...
https://tc39.es/ecma262#table-string-single-character-escape-sequences
2020-10-25 12:48:00 +11:00
Jeremy Bolding
4453913798
Rewote Lexer & Added Stylus Tests
2020-10-23 11:06:37 +11:00
Jeremy Bolding
ab89a09e29
Added Stylus Language Support
2020-10-23 11:06:37 +11:00
Daniel Lewan
225abaed1a
generate static binaries with goreleaser
2020-10-08 23:00:15 +11:00
Ubuntu
ef102ef33f
Add poweron architecture ppc64le to travis build
2020-10-06 18:46:13 +11:00
silverwind
e79405b3cd
add *.env to bash lexer
2020-10-06 11:10:49 +11:00
Carl Schwan
c88ec01ff7
Add QML lexer
2020-09-29 04:41:36 -07:00
Alberto Marchetti
42e9638ed4
Support comma in go template (e.g. for range)
...
```
{{ range $idx, $value := $variable }}
Hello {{ $idx }}
{{ end }}
```
2020-09-22 23:22:36 -07:00
Alberto Marchetti
6665753f98
Improved support for Go templates ( #401 )
2020-09-23 09:27:49 +10:00
thomas
290ff860b9
yaml: block scalar multiline improvements.
v0.8.1
2020-09-09 19:43:07 -07:00
thomas
d65f279810
yaml: inline comments after literals
2020-09-05 15:28:49 -07:00
Tiemen Waterreus
2365845022
Improve Elixir lexer based on Pygments
...
It appears that not all the rules from the Pygments Elixir lexer were
correctly ported over to Chroma. It was missing mostly the keywords and
declarations that are processed in the `get_tokens_unprocessed` function of the
Pygments Elixir lexer.
This commit adds the missing lines to the Elixir lexer and updates the
tests accordingly.
2020-09-03 01:57:33 -07:00
Jean-Philippe Guérard
6d6e9cd020
Update the awk lexer to better support gawk
...
- Add the missing keywords (see
https://www.gnu.org/software/gawk/manual/gawk.html#POSIX_002fGNU ).
- Add support for indirect functions ("@x()").
- Add support for the bidirectional pipe ("|&").
2020-08-30 03:36:18 -07:00
Pedro Loureiro
fb0b720d14
Kotlin improvements around string interpolation, escaping, and generics ( #392 )
2020-08-28 10:26:29 +10:00
Pedro Loureiro
86ebaf326b
Remove unintended changes
2020-08-12 09:04:18 +10:00
Pedro Loureiro
aac329441b
Fix regex from as? to as\?; add one more test case for !==
2020-08-12 09:04:18 +10:00
Pedro Loureiro
8a54f9ea89
add many operators to kotlin
2020-08-12 09:04:18 +10:00
Pedro Loureiro
8d0d2b8e55
Add more keywords to kotlin lexer
2020-08-12 09:04:18 +10:00
Joe Mooring
477ad4aefd
Add await and async keywords to jsx and javascript
...
Closes #385
2020-07-28 22:57:04 +10:00
mrsdizzie
4da591c8f6
Use EnsureNL for go lexer
...
To allow proper detection of single line comments when there is no \n
Fixes #380
v0.8.0
2020-07-16 08:45:39 +10:00
Alec Thomas
e62d93f4aa
Add a timeout to regexes.
...
This avoids pathologically bad match times. Fixes #378 .
2020-07-08 20:23:13 +10:00
silverwind
5756434ec2
Add .editorconfig to ini lexer
...
`.editorconfig` files [are ini](https://editorconfig.org/#file-format-details ). Also tested on the playground and looks well.
2020-07-03 08:17:32 +10:00
silverwind
391f301b71
Fix golangci-lint download
...
2b9ea60d89
updated the version but removed the `v` prefix which I think is what makes the download fail.
2020-07-03 08:15:46 +10:00
thargor
bac6996317
added curly braces to toml lexer
2020-06-30 21:01:17 +10:00
Alec Thomas
2b9ea60d89
Split PHP into two lexers - PHP and PHTML.
...
The former is pure PHP code while the latter is PHP code in <? ?> tags,
within HTML.
Fixes #210 .
2020-06-30 21:00:09 +10:00
nprindle
11501493c9
Fix TypeScript keywords
...
strict mode keywords to highlight:
- yield
- package
contextual keywords to highlight:
- Keyword:
- asserts
- await
- infer
- is
- keyof
- of
- KeywordReserved:
- async
- get
- namespace
- readonly
- require
- set
- type
- from
- global
- KeywordType:
- any
- never
- object
- symbol
- unique
- unknown
- bigint
stop highlighting:
- AS
- char
- byte
- native
- short
- synchronized
- throws
- transient
- volatile
- sun
- netscape
- int
- float
- long
- double
Fix tsx test data for new 'from' highlighting
2020-06-24 10:36:27 +10:00
Thomas Tay
57c1bd941c
Added pony lexer ( #372 )
2020-06-12 14:05:39 +10:00
Francis Lavoie
500529fd43
Minor fix for name constants
2020-05-17 16:39:13 +10:00
Francis Lavoie
8785122ef8
Additional fixes for placeholders
2020-05-17 16:39:13 +10:00
Francis Lavoie
155bdea915
Update Caddyfile lexer to fix edgecases and improve colouring
2020-05-17 16:39:13 +10:00
Robin Thrift
bd463054be
Add Zig lexer
...
Add a lexer for the Zig language (https://ziglang.org ) based on the
pygments Zig lexer.
2020-05-16 21:36:07 +10:00
Francis Lavoie
68968043c3
Add Caddyfile lexer ( #363 )
2020-05-16 19:35:57 +10:00