mirror of
https://github.com/cheat/cheat.git
synced 2024-11-18 09:50:39 +01:00
44 lines
1.2 KiB
XML
44 lines
1.2 KiB
XML
|
<lexer>
|
||
|
<config>
|
||
|
<name>TOML</name>
|
||
|
<alias>toml</alias>
|
||
|
<filename>*.toml</filename>
|
||
|
<filename>Pipfile</filename>
|
||
|
<filename>poetry.lock</filename>
|
||
|
<mime_type>text/x-toml</mime_type>
|
||
|
</config>
|
||
|
<rules>
|
||
|
<state name="root">
|
||
|
<rule pattern="\s+">
|
||
|
<token type="Text"/>
|
||
|
</rule>
|
||
|
<rule pattern="#.*">
|
||
|
<token type="Comment"/>
|
||
|
</rule>
|
||
|
<rule pattern="(false|true)\b">
|
||
|
<token type="KeywordConstant"/>
|
||
|
</rule>
|
||
|
<rule pattern="\d\d\d\d-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d\+)?(Z|[+-]\d{2}:\d{2})">
|
||
|
<token type="LiteralDate"/>
|
||
|
</rule>
|
||
|
<rule pattern="[+-]?[0-9](_?\d)*\.\d+">
|
||
|
<token type="LiteralNumberFloat"/>
|
||
|
</rule>
|
||
|
<rule pattern="[+-]?[0-9](_?\d)*">
|
||
|
<token type="LiteralNumberInteger"/>
|
||
|
</rule>
|
||
|
<rule pattern=""(\\\\|\\"|[^"])*"">
|
||
|
<token type="LiteralStringDouble"/>
|
||
|
</rule>
|
||
|
<rule pattern="'(\\\\|\\'|[^'])*'">
|
||
|
<token type="LiteralStringSingle"/>
|
||
|
</rule>
|
||
|
<rule pattern="[.,=\[\]{}]">
|
||
|
<token type="Punctuation"/>
|
||
|
</rule>
|
||
|
<rule pattern="[A-Za-z0-9_-]+">
|
||
|
<token type="NameOther"/>
|
||
|
</rule>
|
||
|
</state>
|
||
|
</rules>
|
||
|
</lexer>
|