1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-07-05 00:38:52 +02:00

Fix Java lexer (synced with latest Pygments).

Fixes #297.
This commit is contained in:
Alec Thomas
2019-11-05 13:54:35 +11:00
parent bbc59ac372
commit 3aaf3e542f
8 changed files with 240 additions and 22 deletions

View File

@ -4,7 +4,6 @@ import (
"testing"
"github.com/alecthomas/assert"
"github.com/stretchr/testify/require"
)
func TestNewlineAtEndOfFile(t *testing.T) {
@ -40,7 +39,7 @@ func TestMatchingAtStart(t *testing.T) {
}))
it, err := l.Tokenise(nil, `-module ->`)
assert.NoError(t, err)
require.Equal(t,
assert.Equal(t,
[]Token{{Punctuation, "-"}, {NameEntity, "module"}, {Whitespace, " "}, {Operator, "->"}},
it.Tokens())
}