diff options
Diffstat (limited to 'vendor/github.com/alecthomas/chroma/v2/lexers/plaintext.go')
| -rw-r--r-- | vendor/github.com/alecthomas/chroma/v2/lexers/plaintext.go | 16 |
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 @@ | |||
| 1 | package lexers | ||
| 2 | |||
| 3 | import ( | ||
| 4 | . "github.com/alecthomas/chroma/v2" // nolint | ||
| 5 | ) | ||
| 6 | |||
| 7 | var Plaintext = Register(MustNewLexer( | ||
| 8 | &Config{ | ||
| 9 | Name: "plaintext", | ||
| 10 | Aliases: []string{"text", "plain", "no-highlight"}, | ||
| 11 | Filenames: []string{"*.txt"}, | ||
| 12 | MimeTypes: []string{"text/plain"}, | ||
| 13 | Priority: -1, | ||
| 14 | }, | ||
| 15 | PlaintextRules, | ||
| 16 | )) | ||
