5da831672d
Fix a few bugs including sub-lexers adding additional newlines when
...
EnsureNL is true.
2021-02-06 20:13:50 +11:00
da5ac60d8c
Add golangci-lint and fix all lint issues.
2018-12-31 22:46:59 +11:00
881a441774
Don't keep trailing empty tokens when splitting tokens by line.
...
Fixes #155 . Fixes #209 .
2018-12-27 16:20:38 +11:00
a4f179974b
move SplitTokensIntoLines into chroma/iterator.go, fixes issue #190
2018-11-08 16:21:45 +11:00
9c3abeae1d
Tokens by value ( #187 )
...
This results in about a 8% improvement in speed.
2018-11-04 10:22:51 +11:00
e2d6abaa64
Document and add iterator panic recovery.
2017-09-20 23:06:23 +10:00
cc0e4a59ab
Switch to an Iterator interface.
...
This is to solve an issue where writers returned by the Formatter
were often stateful, but this fact was not obvious to the API consumer,
and failed in interesting ways.
2017-09-20 22:19:36 +10:00