mirror of
https://github.com/cheat/cheat.git
synced 2025-09-10 14:02:54 +02:00
chore(deps): update dependencies
This commit is contained in:
12
vendor/github.com/alecthomas/chroma/lexers/m/myghty.go
generated
vendored
12
vendor/github.com/alecthomas/chroma/lexers/m/myghty.go
generated
vendored
@ -7,14 +7,18 @@ import (
|
||||
)
|
||||
|
||||
// Myghty lexer.
|
||||
var Myghty = internal.Register(MustNewLexer(
|
||||
var Myghty = internal.Register(MustNewLazyLexer(
|
||||
&Config{
|
||||
Name: "Myghty",
|
||||
Aliases: []string{"myghty"},
|
||||
Filenames: []string{"*.myt", "autodelegate"},
|
||||
MimeTypes: []string{"application/x-myghty"},
|
||||
},
|
||||
Rules{
|
||||
myghtyRules,
|
||||
))
|
||||
|
||||
func myghtyRules() Rules {
|
||||
return Rules{
|
||||
"root": {
|
||||
{`\s+`, Text, nil},
|
||||
{`(<%(?:def|method))(\s*)(.*?)(>)(.*?)(</%\2\s*>)(?s)`, ByGroups(NameTag, Text, NameFunction, NameTag, UsingSelf("root"), NameTag), nil},
|
||||
@ -36,5 +40,5 @@ var Myghty = internal.Register(MustNewLexer(
|
||||
\Z # end of string
|
||||
)`, ByGroups(Other, Operator), nil},
|
||||
},
|
||||
},
|
||||
))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user