1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-12-01 22:51:19 +02:00

Update golangci-lint so we can force use of LazyLexer.

This commit is contained in:
Alec Thomas
2021-04-29 12:07:50 +10:00
parent f3874594e7
commit 7e282be495
15 changed files with 193 additions and 167 deletions

View File

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