Alec Thomas
54fd3bc12f
Clean up imports and make cmd/chroma its own module.
2021-06-18 16:56:50 +10:00
Alec Thomas
7e282be495
Update golangci-lint so we can force use of LazyLexer.
2021-04-29 12:08:28 +10:00
Alec Thomas
bbbfbe4e7a
Update to more recent golangci-lint.
2019-07-19 18:57:05 +10:00
Alec Thomas
3175fa52d7
Support go modules + VB.Net lexer.
...
Fixes #201 .
2018-12-03 20:38:33 -10: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
db6920e68f
Implemented delegating lexer.
...
This is a lexer that is useful for templating languages, where the
surrounding text may be of a different syntax. eg. PHP+HTML
The PHP lexer has been changed accordingly.
Fixes #80
2018-03-18 20:38:29 +11:00
Alec Thomas
15a009f0fc
Add DelegatingLexer.
2018-03-17 13:44:03 +11:00