mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 05:22:23 +00: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> |