summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/alecthomas/chroma/lexers/b/brainfuck.go
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2022-01-14 18:16:05 -0500
committerGitHub <noreply@github.com>2022-01-14 18:16:05 -0500
commit84145e45c50130922fae9055535ab5ea0378e1d4 (patch)
treefce077a5ae462840bb876ace79aca42abab29ed7 /vendor/github.com/alecthomas/chroma/lexers/b/brainfuck.go
parent2b16ca7c773de278ba01f122dc6f9f43d7534c52 (diff)
downloadgitea-84145e45c50130922fae9055535ab5ea0378e1d4.tar.gz
gitea-84145e45c50130922fae9055535ab5ea0378e1d4.zip
Remove golang vendored directory (#18277)
* rm go vendor * fix drone yaml * add to gitignore
Diffstat (limited to 'vendor/github.com/alecthomas/chroma/lexers/b/brainfuck.go')
-rw-r--r--vendor/github.com/alecthomas/chroma/lexers/b/brainfuck.go38
1 files changed, 0 insertions, 38 deletions
diff --git a/vendor/github.com/alecthomas/chroma/lexers/b/brainfuck.go b/vendor/github.com/alecthomas/chroma/lexers/b/brainfuck.go
deleted file mode 100644
index d35e9c6db9..0000000000
--- a/vendor/github.com/alecthomas/chroma/lexers/b/brainfuck.go
+++ /dev/null
@@ -1,38 +0,0 @@
-package b
-
-import (
- . "github.com/alecthomas/chroma" // nolint
- "github.com/alecthomas/chroma/lexers/internal"
-)
-
-// Brainfuck lexer.
-var Brainfuck = internal.Register(MustNewLazyLexer(
- &Config{
- Name: "Brainfuck",
- Aliases: []string{"brainfuck", "bf"},
- Filenames: []string{"*.bf", "*.b"},
- MimeTypes: []string{"application/x-brainfuck"},
- },
- brainfuckRules,
-))
-
-func brainfuckRules() Rules {
- return Rules{
- "common": {
- {`[.,]+`, NameTag, nil},
- {`[+-]+`, NameBuiltin, nil},
- {`[<>]+`, NameVariable, nil},
- {`[^.,+\-<>\[\]]+`, Comment, nil},
- },
- "root": {
- {`\[`, Keyword, Push("loop")},
- {`\]`, Error, nil},
- Include("common"),
- },
- "loop": {
- {`\[`, Keyword, Push()},
- {`\]`, Keyword, Pop(1)},
- Include("common"),
- },
- }
-}