mirror of
https://github.com/cheat/cheat.git
synced 2025-09-10 05:52:53 +02:00
chore(deps): update dependencies
This commit is contained in:
12
vendor/github.com/alecthomas/chroma/lexers/m/mason.go
generated
vendored
12
vendor/github.com/alecthomas/chroma/lexers/m/mason.go
generated
vendored
@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
// Mason lexer.
|
||||
var Mason = internal.Register(MustNewLexer(
|
||||
var Mason = internal.Register(MustNewLazyLexer(
|
||||
&Config{
|
||||
Name: "Mason",
|
||||
Aliases: []string{"mason"},
|
||||
@ -16,7 +16,11 @@ var Mason = internal.Register(MustNewLexer(
|
||||
MimeTypes: []string{"application/x-mason"},
|
||||
Priority: 0.1,
|
||||
},
|
||||
Rules{
|
||||
masonRules,
|
||||
))
|
||||
|
||||
func masonRules() Rules {
|
||||
return Rules{
|
||||
"root": {
|
||||
{`\s+`, Text, nil},
|
||||
{`(<%doc>)(.*?)(</%doc>)(?s)`, ByGroups(NameTag, CommentMultiline, NameTag), nil},
|
||||
@ -39,5 +43,5 @@ var Mason = internal.Register(MustNewLexer(
|
||||
\Z # end of string
|
||||
)`, ByGroups(Using(HTML), Operator), nil},
|
||||
},
|
||||
},
|
||||
))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user