mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 18:55:06 +01:00
1790aec85d
Bump `alecthomas/chroma` to `v2`: https://github.com/cheat/cheat/issues/735
28 lines
645 B
XML
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="(<)([ -;=?-~]+)(>)">
|
|
<bygroups>
|
|
<token type="Punctuation"/>
|
|
<token type="NameClass"/>
|
|
<token type="Punctuation"/>
|
|
</bygroups>
|
|
</rule>
|
|
<rule pattern="::=">
|
|
<token type="Operator"/>
|
|
</rule>
|
|
<rule pattern="[^<>:]+">
|
|
<token type="Text"/>
|
|
</rule>
|
|
<rule pattern=".">
|
|
<token type="Text"/>
|
|
</rule>
|
|
</state>
|
|
</rules>
|
|
</lexer> |