1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-02-15 13:33:12 +02:00

281 Commits

Author SHA1 Message Date
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. v0.6.4 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
Alec Thomas
eb8e868cce Support for array transpose operator in Julia.
Fixes #253.
2019-06-09 17:40:38 +10:00
Devon Romanko
399337e012 Update Java lexer to use Punctuation where applicable (#254) (#255) 2019-05-30 11:19:12 +10:00
tamura shingo
f1ba5bf4f3 Implement special name mappings for Common Lisp. 2019-05-07 21:24:24 +10:00
Dustin Heestand
4a43fbd1ec Removed # as a comment character 2019-05-06 10:36:17 +10:00
Shigeki Karita
1327f9145e D language support (#249) 2019-04-29 05:15:40 +10:00
colin3dmax
53b060ccbe Added lexer for Vue. (#248) 2019-04-24 10:07:29 +10:00
Alec Thomas
9618112850 Import JSX lexer from https://github.com/fcurella/jsx-lexer
Fixes #218.
2019-04-22 19:38:15 +10:00
Alec Thomas
2105c68ed2 Implemented a weird little Pygments rule that I missed.
> If the RegexLexer encounters a newline that is flagged as an error
> token, the stack is emptied and the lexer continues scanning in the
> 'root' state. This can help producing error-tolerant highlighting for
> erroneous input, e.g. when a single-line string is not closed.

Fixes #246.
2019-04-22 18:22:58 +10:00
Douglas La Rocca
26f03cb449 modify jsx lexer to handle tags with periods 2019-04-04 08:48:02 +11:00
Alec Thomas
38460d1881 Clean repo before running goreleaser because it's insanely pedantic. v0.6.3 2019-03-25 15:12:11 +11:00
yangbo
564f7d393f add support for matlab 2019-03-07 23:49:34 +11:00
Kaushal Modi
c67f8fee79 Support SystemVerilog DPI and DPI-C import statements
Ref: Section "35.5.4 Import declarations" from SystemVerilog standard
IEEE 1800-2017.
2019-03-06 08:48:01 +11:00
Bardi Harborow
e10834d052 README adjustments (#236)
* Update README.md badges to SVG.

* Change hyphen to em dash.

* Add highlight language to shell commands.
2019-02-27 23:00:55 +11:00
Chris de Graaf
3bae20e98e Add modern struct keywords to Julia lexer 2019-02-20 21:25:33 +11:00
Victor Kropp
b5ccb8dc32 Improve numbers parsing in Kotlin 2019-02-09 10:23:20 +11:00
Jagger De Leo
f4dea84888 Add Turing tests 2019-02-04 15:40:15 +11:00
Jagger De Leo
243dad6e5b Add Turing lexer
Turing source files usually end with .t, but that clashes with Perl.
2019-02-04 15:40:15 +11:00
Jos512
8fd401fe83 Fix JS second part of division expression 2019-02-03 09:52:22 +11:00
Jos512
1a22fed4bd Fix Rust raw string literals 2019-02-03 09:51:40 +11:00
Jos512
af4cf6a8b5 Fix capitalisation mistake in lexer variable 2019-02-03 09:07:29 +11:00
Jos512
15bc6832dc Remove comment and CPP name 2019-02-03 09:07:29 +11:00
Jos512
c53abb037b Add Arduino lexer 2019-02-03 09:07:29 +11:00
Jos512
3159487ca7 Recognise hexadecimal colour values in TradingView lexer 2019-01-30 08:57:01 +11:00
Adam Scarr
8548c73b9f Move test assertion generation into testcase 2019-01-29 17:31:57 +11:00
Jos512
6227d9bbc5 Add missing TradingView tokens 2019-01-26 20:20:35 +11:00
Adam Scarr
4b6319e2ab Add basic graphql support 2019-01-24 14:12:19 +11:00
Jos512
3c6b341f5a Add additional information about style to README 2019-01-23 20:31:45 +11:00
Jos512
8ce6ac6016 Enable EnsureNL for TradingView and C# lexers 2019-01-23 20:30:40 +11:00
Jos512
abbe00cecd Provide some default styles for RRT (fixes #212) (#219) 2019-01-23 18:48:27 +11:00
Alec Thomas
da5ac60d8c Add golangci-lint and fix all lint issues. 2018-12-31 22:46:59 +11:00
Alec Thomas
e27f19c12f Remove unnecessary loop.
Loops were returning directly.

Fixes #181.
2018-12-31 21:54:40 +11:00
Alec Thomas
c4bec47e7d Don't break Markdown on multiple bolds on a single line.
Also highlight entire title for title lines rather than just the code.

Fixes #193. Fixes #195.
2018-12-31 19:32:29 +11:00
Alec Thomas
2a59c2c77e Synthesise meta style-entries on demand.
This includes line highlighting, numbers, etc.

Fixes #211.
2018-12-31 11:33:36 +11:00
Alec Thomas
69c9a262c3 Expose Colour.BrightenOrDarken (useful for #211). 2018-12-31 10:48:45 +11:00
Alec Thomas
881a441774 Don't keep trailing empty tokens when splitting tokens by line.
Fixes #155. Fixes #209.
v0.6.2
2018-12-27 16:20:38 +11:00
Alec Thomas
4eb0355de0 Formatting. 2018-12-27 16:13:37 +11:00
Alec Thomas
3b3f74c6a5 Fix stdin mode in chroma tool.
Fixes #207.
v0.6.1
2018-12-14 10:42:19 +11:00
Alec Thomas
3175fa52d7 Support go modules + VB.Net lexer.
Fixes #201.
2018-12-03 20:38:33 -10:00
Jos512
813e33c8f4 Fix YAML pipe symbol (issue #194) 2018-11-12 20:08:24 +11:00
Alec Thomas
022b6f4fc2 Fix --json.
Fixes #199.
2018-11-12 18:50:00 +11:00
Alec Thomas
fb4c38e204 Fix build (see #190). 2018-11-08 17:16:58 +11:00
Randall C. O'Reilly
a4f179974b move SplitTokensIntoLines into chroma/iterator.go, fixes issue #190 2018-11-08 16:21:45 +11:00
Daniel Eloff
9c3abeae1d Tokens by value (#187)
This results in about a 8% improvement in speed.
2018-11-04 10:22:51 +11:00
Pedro Sland
5a473179cf Improve Go lexer to detect functions (NameFunction) v0.6.0 2018-10-23 06:35:09 -07:00
Thth
01e18834b5 Elixir: add underscore separators for hex, oct, bin 2018-10-13 17:18:43 -04:00
Jos512
c0b13daec9 Added missing 'to' keyword to TradingView lexer 2018-10-05 23:45:09 +10:00