mirror of
https://github.com/cheat/cheat.git
synced 2024-11-18 09:50:39 +01:00
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>
|