2019-02-18 19:29:11 +01:00
|
|
|
package p
|
|
|
|
|
|
|
|
import (
|
|
|
|
. "github.com/alecthomas/chroma" // nolint
|
|
|
|
"github.com/alecthomas/chroma/lexers/internal"
|
|
|
|
)
|
|
|
|
|
|
|
|
var Plaintext = internal.Register(MustNewLexer(
|
|
|
|
&Config{
|
|
|
|
Name: "plaintext",
|
|
|
|
Aliases: []string{"text", "plain", "no-highlight"},
|
|
|
|
Filenames: []string{"*.txt"},
|
|
|
|
MimeTypes: []string{"text/plain"},
|
2020-05-09 22:49:03 +02:00
|
|
|
Priority: 0.1,
|
2019-02-18 19:29:11 +01:00
|
|
|
},
|
|
|
|
internal.PlaintextRules,
|
|
|
|
))
|