summaryrefslogtreecommitdiff
path: root/vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bnf.xml
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bnf.xml')
-rw-r--r--vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bnf.xml28
1 files changed, 28 insertions, 0 deletions
diff --git a/vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bnf.xml b/vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bnf.xml
new file mode 100644
index 0000000..5c98424
--- /dev/null
+++ b/vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bnf.xml
@@ -0,0 +1,28 @@
+<lexer>
+ <config>
+ <name>BNF</name>
+ <alias>bnf</alias>
+ <filename>*.bnf</filename>
+ <mime_type>text/x-bnf</mime_type>
+ </config>
+ <rules>
+ <state name="root">
+ <rule pattern="(&lt;)([ -;=?-~]+)(&gt;)">
+ <bygroups>
+ <token type="Punctuation"/>
+ <token type="NameClass"/>
+ <token type="Punctuation"/>
+ </bygroups>
+ </rule>
+ <rule pattern="::=">
+ <token type="Operator"/>
+ </rule>
+ <rule pattern="[^&lt;&gt;:]+">
+ <token type="Text"/>
+ </rule>
+ <rule pattern=".">
+ <token type="Text"/>
+ </rule>
+ </state>
+ </rules>
+</lexer> \ No newline at end of file