cheat/vendor/github.com/alecthomas/chroma/lexers/p/plaintext.go

18 lines
375 B
Go
Raw Normal View History

2019-10-27 17:04:31 +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"},
Priority: 0.1,
2019-10-27 17:04:31 +01:00
},
internal.PlaintextRules,
))