thomas
2b9c82d89f
yaml parse multiline block scalars as single StringDoc
2020-05-12 08:40:47 +10:00
thomas
16bde869ae
yaml parse for all bool keyword constant variations
2020-05-12 08:40:47 +10:00
thomas
684c267d74
yaml parse plan scalar values as literals rather than text.
2020-05-12 08:40:47 +10:00
thomas
705c61c909
yaml parse --- and ... as NameNamespace
2020-05-12 08:40:47 +10:00
thomas
0d4fb389ce
yaml parse keys as NameTag rather than Keyword
2020-05-12 08:40:47 +10:00
Cameron Little
ec5955f1a9
Make single # on a line recognized as CommentSingle
...
Fixes #318
2020-05-11 22:26:13 +10:00
Cameron Little
8c4fe7e59f
Add failing test case for single # in bash
2020-05-11 22:26:13 +10:00
Michael Kohl
6b8ef36ed9
Add ReasonML lexer
2020-05-04 08:51:58 +10:00
Michael Barz
82f38b96ec
add gherkin lexer ( #354 )
2020-05-02 08:59:58 +10:00
Igor Drozdov
80f48538c4
Improve performance of lexers.Get function ( #351 )
...
* Benchmark test for lexers.Get function
* Improve performance of lexers.Get function
Look for a lexer by file extension only when it failed to find a
lexer by name
2020-04-26 07:55:10 +10:00
Tristan Menzel
0da4bd1471
Adds support for jsx blocks in typescript lexer
...
Adds support for jsx tags with a period in their name
Adds support for jsx fragments (<></>)
2020-04-20 12:39:21 +10:00
GRIBOK
28041a86ba
Add YANG lexer ( #348 )
...
* add yang lexer. See alecthomas/chroma#347
* Alphabetise all keywords in yang lexer
2020-04-14 18:36:08 +10:00
Alec Thomas
937aba1514
Fixes #344 .
2020-03-15 17:06:21 +11:00
Alec Thomas
4f3623dce6
Fallback to HTML lexer for Markdown text.
...
Fixes #321 .
2020-03-05 15:06:04 +11:00
Edgar Lee
e5d9650a20
Add hlb lexer ( #332 )
2020-02-26 21:03:38 +11:00
Adrian Gao
866d0c8fb5
Add lexer for SAS language ( #337 )
2020-02-26 20:57:32 +11:00
Orhan Hirsch
e54a758d06
Add testdata for terraform
2020-02-22 09:47:32 +11:00
Orhan Hirsch
c83e581f07
Updated terraform rules for Terraform 0.12+. Based on terraform
...
documentation (https://www.terraform.io/docs/configuration/index.html ).
Added all builtin functions and updated syntax rules.
2020-02-22 09:47:32 +11:00
Amos Wenger
0f6a31d4cd
rust: support raw identifiers
...
See https://doc.rust-lang.org/edition-guide/rust-2018/module-system/raw-identifiers.html
2020-01-10 10:04:37 +11:00
Alec Thomas
2d9ac06785
Fix PowerShell error on drive letters.
...
Fixes #312 .
2019-12-07 19:00:42 -08:00
κeen
67fb64311a
add SML lexer ( #310 )
2019-12-01 23:17:22 -08:00
jpienaar
ec2ba48433
Add lexer for LLVM TableGen ( #311 )
2019-12-01 20:15:03 -08:00
jpienaar
352e19d7f2
Avoid empty matches in MLIR lexer
...
Ensure at least one character is matched else lexing ends up making no forward progress.
2019-12-01 10:42:06 -08:00
jpienaar
15c7468f37
Add simple MLIR lexer ( #308 )
...
* Add simple MLIR lexer
* Add simple MLIR lexer
Use sample.mlir from https://github.com/jpienaar/mlir-grammar
2019-11-30 14:29:49 -08:00
Ghislain Bourgeois
3b4f493cc3
Add basic keyword highlighting for YAML
2019-11-28 10:31:21 +11:00
Alec Thomas
28dcb8565c
Fixes #305 .
2019-11-24 12:49:34 +11:00
exploide
cfc6117710
mysql: added keywords 'privileges', 'identified' and 'user'
2019-11-23 22:23:30 +11:00
Alec Thomas
3aaf3e542f
Fix Java lexer (synced with latest Pygments).
...
Fixes #297 .
2019-11-05 13:57:51 +11:00
Alec Thomas
bbc59ac372
Emit error tokens when there's a group mismatch.
...
Also don't panic/recover, as we no longer use panic to report "real"
errors.
Fixes #295 .
2019-10-24 17:03:35 +11:00
Sean McGivern
a1c4eaa235
Add J lexer
...
Generated with _tools/pygments2chroma.py.
Sample `toupper` verb from `stdlib.ijs`:
https://github.com/jsoftware/jsource/blob/j808-release/jlibrary/system/main/stdlib.ijs
2019-10-22 07:23:06 +11:00
Alec Thomas
73d11b3c45
Clear background colour for TTY formatters.
2019-10-15 21:08:17 +11:00
Alec Thomas
b44683eae8
Fix linter.
2019-10-06 20:14:05 +11:00
Alec Thomas
b618823c9b
Add bibtex support.
...
Fixes #271 .
2019-10-06 18:10:54 +11:00
Alec Thomas
20b4f5f89b
Revert float pattern for C++.
...
Fixes #290 .
2019-10-05 22:53:51 +10:00
Jos512
6acfa13b55
Improve info on test regeneration ( #287 )
2019-10-04 08:57:10 +10:00
Jos512
0ff62486a5
Add multi-line comments to Nim lexer ( #285 )
2019-09-30 09:40:34 +10:00
matthias
8eb6aa7fb6
Add Language Igor ( #276 )
...
* Add Language Igor
Igor is a scientific language developed by
[WaveMetrics](https://www.wavemetrics.com/ ).
This lexer was translated directly from the [pygments
lexer](http://pygments.org/docs/lexers/#lexers-for-igor-pro ) without any
changes. The pygments lexer is very basic but working properly for most
of the cases.
2019-09-23 09:35:48 +10:00
Jos512
d122d30d7b
Add ABAP lexer
2019-09-20 07:52:50 +10:00
Jos512
b964bce980
Update TradingView lexer to v4 ( #279 )
2019-09-17 23:11:42 +10:00
Alec Thomas
5152194c71
Sync docker lexer to latest Pygments.
...
Fixes #265 .
2019-09-11 12:35:02 +10:00
Jonathan Poelen
6a3320f1b7
Fix several errors with c++
...
- add attribute ([[...]])
- add c++20 keywords
- add hexadecimal floatting point
- add digits separator
- fix unamed class/union/struct/enum (fix #272 )
- fix function name detection
2019-09-01 13:11:26 +10:00
Alec Thomas
2b493e2556
Fix SCSS issue with comments.
...
Fixes #272
2019-08-29 10:01:55 +10:00
FujiHaruka
70b7419367
Add EnsureNL in TypeScript lexer config
2019-08-11 22:10:30 +10:00
Nathan Ringo
65b5eea9a2
Adds .fth extension for Forth.
2019-08-06 21:53:29 +10:00
Alec Thomas
bbbfbe4e7a
Update to more recent golangci-lint.
2019-07-19 18:57:05 +10:00
Alec Thomas
2b84f4bd4d
Sync R lexer with Pygments.
...
Fixes #260 .
2019-07-15 20:40:04 +10:00
Mathieu Besançon
6b98624dc1
Update julia.go ( #258 )
...
They key word is `abstract type`, `abstract` or `type` alone can be defined as new bindings
2019-06-21 06:45:28 +10:00
Alec Thomas
1a13c19115
Add HCL lexer.
2019-06-17 22:51:52 +10:00
Alec Thomas
ea14dd8660
Fixed a fundamental bug where ^ would always match.
...
The engine was always passing a string sliced to the current position,
resulting in ^ always matching. Switched to use
FindRunesMatchStartingAt.
Fixes #242 .
2019-06-12 12:32:20 +10:00
Mathieu Besançon
6e1e5df187
Update julia.go
...
Remove deprecated keywords and types
2019-06-09 19:29:21 +10:00