mirror of
https://github.com/alecthomas/chroma.git
synced 2025-03-25 21:39:02 +02:00
The engine was always passing a string sliced to the current position, resulting in ^ always matching. Switched to use FindRunesMatchStartingAt. Fixes #242.
Lexer tests
The tests in this directory feed a known input testdata/<name>.actual
into the parser for <name>
and check
that its output matches <name>.exported
.
Running the tests
Run the tests as normal:
go test ./lexers
Updating the existing tests
You can regenerate all the test outputs
RECORD=true go test ./lexers