0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 01:05:14 +01:00
gitea/vendor/github.com/alecthomas/chroma/lexers/p/plaintext.go

18 lines
379 B
Go
Raw Normal View History

package p
import (
. "github.com/alecthomas/chroma" // nolint
"github.com/alecthomas/chroma/lexers/internal"
)
var Plaintext = internal.Register(MustNewLazyLexer(
&Config{
Name: "plaintext",
Aliases: []string{"text", "plain", "no-highlight"},
Filenames: []string{"*.txt"},
MimeTypes: []string{"text/plain"},
Priority: 0.1,
},
internal.PlaintextRules,
))