cheat/vendor/github.com/alecthomas/chroma/v2/lexers/embedded/toml.xml
Christopher Allen Lane 1790aec85d chore(deps): bump chroma to v2 #735
Bump `alecthomas/chroma` to `v2`:
https://github.com/cheat/cheat/issues/735
2023-12-13 12:54:32 -05:00

44 lines
No EOL
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="&#34;(\\\\|\\&#34;|[^&#34;])*&#34;">
<token type="LiteralStringDouble"/>
</rule>
<rule pattern="&#39;(\\\\|\\&#39;|[^&#39;])*&#39;">
<token type="LiteralStringSingle"/>
</rule>
<rule pattern="[.,=\[\]{}]">
<token type="Punctuation"/>
</rule>
<rule pattern="[A-Za-z0-9_-]+">
<token type="NameOther"/>
</rule>
</state>
</rules>
</lexer>