chore(deps): update dependencies

This commit is contained in:
Chris Lane
2021-04-28 12:23:24 -04:00
parent e847956b02
commit 0aca411279
493 changed files with 16142 additions and 2916 deletions

View File

@ -6,7 +6,7 @@ import (
)
// JSON lexer.
var JSON = internal.Register(MustNewLexer(
var JSON = internal.Register(MustNewLazyLexer(
&Config{
Name: "JSON",
Aliases: []string{"json"},
@ -15,7 +15,11 @@ var JSON = internal.Register(MustNewLexer(
NotMultiline: true,
DotAll: true,
},
Rules{
jsonRules,
))
func jsonRules() Rules {
return Rules{
"whitespace": {
{`\s+`, Text, nil},
},
@ -51,5 +55,5 @@ var JSON = internal.Register(MustNewLexer(
"root": {
Include("value"),
},
},
))
}
}