cheat/vendor/github.com/alecthomas/chroma/v2/lexers/embedded/wdte.xml

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>