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:
@ -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},
|
||||
|
Reference in New Issue
Block a user