cheat/vendor/github.com/alecthomas/chroma/v2/lexers/embedded/bnf.xml
Christopher Allen Lane 1790aec85d chore(deps): bump chroma to v2 #735
Bump `alecthomas/chroma` to `v2`:
https://github.com/cheat/cheat/issues/735
2023-12-13 12:54:32 -05:00

28 lines
645 B
XML

<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>