summaryrefslogtreecommitdiff
path: root/vendor/github.com/alecthomas/chroma/v2/lexers/plaintext.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/alecthomas/chroma/v2/lexers/plaintext.go')
-rw-r--r--vendor/github.com/alecthomas/chroma/v2/lexers/plaintext.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/alecthomas/chroma/v2/lexers/plaintext.go b/vendor/github.com/alecthomas/chroma/v2/lexers/plaintext.go
new file mode 100644
index 0000000..8b32aa4
--- /dev/null
+++ b/vendor/github.com/alecthomas/chroma/v2/lexers/plaintext.go
@@ -0,0 +1,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,
+))