2019-10-27 17:04:31 +01:00
|
|
|
package p
|
|
|
|
|
|
|
|
import (
|
|
|
|
. "github.com/alecthomas/chroma" // nolint
|
|
|
|
"github.com/alecthomas/chroma/lexers/internal"
|
|
|
|
)
|
|
|
|
|
2021-04-28 18:35:32 +02:00
|
|
|
var Plaintext = internal.Register(MustNewLazyLexer(
|
2019-10-27 17:04:31 +01:00
|
|
|
&Config{
|
|
|
|
Name: "plaintext",
|
|
|
|
Aliases: []string{"text", "plain", "no-highlight"},
|
|
|
|
Filenames: []string{"*.txt"},
|
|
|
|
MimeTypes: []string{"text/plain"},
|
2020-05-12 02:12:28 +02:00
|
|
|
Priority: 0.1,
|
2019-10-27 17:04:31 +01:00
|
|
|
},
|
|
|
|
internal.PlaintextRules,
|
|
|
|
))
|