blob: 8b32aa4420695f2ae297d31ded769f89da99640a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package lexers
import (
. "github.com/alecthomas/chroma/v2" // nolint
)
var Plaintext = Register(MustNewLexer(
&Config{
Name: "plaintext",
Aliases: []string{"text", "plain", "no-highlight"},
Filenames: []string{"*.txt"},
MimeTypes: []string{"text/plain"},
Priority: -1,
},
PlaintextRules,
))
|