cheat/vendor/github.com/alecthomas/chroma/v2/lexers/embedded/wdte.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

43 lines
1.1 KiB
XML

<lexer>
<config>
<name>WDTE</name>
<filename>*.wdte</filename>
</config>
<rules>
<state name="root">
<rule pattern="\n">
<token type="Text"/>
</rule>
<rule pattern="\s+">
<token type="Text"/>
</rule>
<rule pattern="\\\n">
<token type="Text"/>
</rule>
<rule pattern="#(.*?)\n">
<token type="CommentSingle"/>
</rule>
<rule pattern="-?[0-9]+">
<token type="LiteralNumberInteger"/>
</rule>
<rule pattern="-?[0-9]*\.[0-9]+">
<token type="LiteralNumberFloat"/>
</rule>
<rule pattern="&#34;[^&#34;]*&#34;">
<token type="LiteralString"/>
</rule>
<rule pattern="&#39;[^&#39;]*&#39;">
<token type="LiteralString"/>
</rule>
<rule pattern="(default|switch|memo)\b">
<token type="KeywordReserved"/>
</rule>
<rule pattern="{|}|;|-&gt;|=&gt;|\(|\)|\[|\]|\.">
<token type="Operator"/>
</rule>
<rule pattern="[^{};()[\].\s]+">
<token type="NameVariable"/>
</rule>
</state>
</rules>
</lexer>