mirror of
https://github.com/alecthomas/chroma.git
synced 2025-02-11 13:25:37 +02:00
18 lines
298 B
Go
18 lines
298 B
Go
package lexers
|
|
|
|
import (
|
|
. "github.com/alecthomas/chroma" // nolint
|
|
)
|
|
|
|
// Fallback lexer if no other is found.
|
|
var Fallback = Register(NewLexer(&Config{
|
|
Name: "fallback",
|
|
Filenames: []string{"*"},
|
|
Priority: 99,
|
|
}, Rules{
|
|
"root": []Rule{
|
|
{`.+`, Text, nil},
|
|
{`\n`, Text, nil},
|
|
},
|
|
}))
|