1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-01-12 01:22:30 +02:00
chroma/lexers/default.go
2017-06-07 19:47:59 +10:00

18 lines
295 B
Go

package lexers
import (
. "github.com/alecthomas/chroma" // nolint
)
// Default lexer if no other is found.
var Default = Register(NewLexer(&Config{
Name: "default",
Filenames: []string{"*"},
Priority: 99,
}, Rules{
"root": []Rule{
{`.+`, Text, nil},
{`\n`, Text, nil},
},
}))