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/mathematica.go
generated
vendored
12
vendor/github.com/alecthomas/chroma/lexers/m/mathematica.go
generated
vendored
@ -6,14 +6,18 @@ import (
|
||||
)
|
||||
|
||||
// Mathematica lexer.
|
||||
var Mathematica = internal.Register(MustNewLexer(
|
||||
var Mathematica = internal.Register(MustNewLazyLexer(
|
||||
&Config{
|
||||
Name: "Mathematica",
|
||||
Aliases: []string{"mathematica", "mma", "nb"},
|
||||
Filenames: []string{"*.nb", "*.cdf", "*.nbp", "*.ma"},
|
||||
MimeTypes: []string{"application/mathematica", "application/vnd.wolfram.mathematica", "application/vnd.wolfram.mathematica.package", "application/vnd.wolfram.cdf"},
|
||||
},
|
||||
Rules{
|
||||
mathematicaRules,
|
||||
))
|
||||
|
||||
func mathematicaRules() Rules {
|
||||
return Rules{
|
||||
"root": {
|
||||
{`(?s)\(\*.*?\*\)`, Comment, nil},
|
||||
{"([a-zA-Z]+[A-Za-z0-9]*`)", NameNamespace, nil},
|
||||
@ -28,5 +32,5 @@ var Mathematica = internal.Register(MustNewLexer(
|
||||
{`".*?"`, LiteralString, nil},
|
||||
{`\s+`, TextWhitespace, nil},
|
||||
},
|
||||
},
|
||||
))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user