mirror of
https://github.com/alecthomas/chroma.git
synced 2025-01-12 01:22:30 +02:00
18 lines
295 B
Go
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},
|
|
},
|
|
}))
|