1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-01-30 03:38:02 +02:00

15 Commits

Author SHA1 Message Date
Alec Thomas
54fd3bc12f Clean up imports and make cmd/chroma its own module. 2021-06-18 16:56:50 +10:00
Carlos Henrique Guardão Gandarez
a566061e65 Add set text analyser for MySQL lexer 2021-05-19 08:20:08 +10:00
mlpo
312be634e4 Allow several tests for a same lexer 2021-05-07 08:42:53 +10:00
Alberto Marchetti
6665753f98
Improved support for Go templates (#401) 2020-09-23 09:27:49 +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
Daniel G. Taylor
4065717136 feat: support HTTP/2 in HTTP lexer 2020-05-14 14:06:46 +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
Adam Scarr
8548c73b9f Move test assertion generation into testcase 2019-01-29 17:31:57 +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
Alec Thomas
59f554950e Fix DelegatingLexer.
Fixes #126.
2018-03-19 10:54:09 +11:00
Alec Thomas
8f289191c9 Use alecthomas/assert. 2018-03-03 10:24:18 +11:00
Alec Thomas
3020e2ea8c Fix bug with nested newlines.
Fixes #124.

Also reinstitute lexer tests that disappeared during package split.
2018-03-03 10:16:21 +11:00
Alec Thomas
563aadc53c Moved lexers into alphabetical sub-packages.
This was done to speed up incremental compilation when working on
lexers. That is, modifying a single lexer will no longer require
recompiling all lexers.

This is a (slightly) backwards breaking change in that lexers are no
longer exported directly in the lexers package. The registry API is
"aliased" at the old location.
2018-02-15 21:09:02 +11:00
Alec Thomas
e0f32fbcb5 Make lexer fixture running cleaner. 2018-01-02 15:11:41 +11:00
Alec Thomas
e56590a815 Add data-driven test framework for lexers.
See #68.
2018-01-02 14:53:25 +11:00