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

Ensure a newline exists at the end of files.

Fixes #42.
This commit is contained in:
Alec Thomas
2017-09-29 21:59:52 +10:00
parent 528bed2b60
commit 573c1d157d
13 changed files with 34 additions and 27 deletions

View File

@ -3,11 +3,11 @@ package chroma
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/alecthomas/assert"
)
func TestRemappingLexer(t *testing.T) {
var lexer Lexer = MustNewLexer(nil, Rules{
var lexer Lexer = MustNewLexer(&Config{DontEnsureNL: true}, Rules{
"root": {
{`\s+`, Whitespace, nil},
{`\w+`, Name, nil},