1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-07-13 01:10:14 +02:00

Invert default "ensure newline" behaviour so that it is opt-in.

See #47.
This commit is contained in:
Alec Thomas
2017-09-30 14:40:39 +10:00
parent 573c1d157d
commit ce3d6bf527
6 changed files with 7 additions and 6 deletions

View File

@ -7,7 +7,7 @@ import (
)
func TestRemappingLexer(t *testing.T) {
var lexer Lexer = MustNewLexer(&Config{DontEnsureNL: true}, Rules{
var lexer Lexer = MustNewLexer(nil, Rules{
"root": {
{`\s+`, Whitespace, nil},
{`\w+`, Name, nil},