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 (
)
// Forth lexer.
var Forth = internal.Register(MustNewLexer(
var Forth = internal.Register(MustNewLazyLexer(
&Config{
Name: "Forth",
Aliases: []string{"forth"},
@ -14,7 +14,11 @@ var Forth = internal.Register(MustNewLexer(
MimeTypes: []string{"application/x-forth"},
CaseInsensitive: true,
},
Rules{
forthRules,
))
func forthRules() Rules {
return Rules{
"root": {
{`\s+`, Text, nil},
{`\\.*?\n`, CommentSingle, nil},
@ -36,5 +40,5 @@ var Forth = internal.Register(MustNewLexer(
"stringdef": {
{`[^"]+`, LiteralString, Pop(1)},
},
},
))
}
}