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
43 lines
1.1 KiB
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=""[^"]*"">
|
|
<token type="LiteralString"/>
|
|
</rule>
|
|
<rule pattern="'[^']*'">
|
|
<token type="LiteralString"/>
|
|
</rule>
|
|
<rule pattern="(default|switch|memo)\b">
|
|
<token type="KeywordReserved"/>
|
|
</rule>
|
|
<rule pattern="{|}|;|->|=>|\(|\)|\[|\]|\.">
|
|
<token type="Operator"/>
|
|
</rule>
|
|
<rule pattern="[^{};()[\].\s]+">
|
|
<token type="NameVariable"/>
|
|
</rule>
|
|
</state>
|
|
</rules>
|
|
</lexer> |