mirror of
https://github.com/cheat/cheat.git
synced 2024-11-18 01:40:39 +01:00
1790aec85d
Bump `alecthomas/chroma` to `v2`: https://github.com/cheat/cheat/issues/735
45 lines
No EOL
1.2 KiB
XML
45 lines
No EOL
1.2 KiB
XML
<lexer>
|
|
<config>
|
|
<name>INI</name>
|
|
<alias>ini</alias>
|
|
<alias>cfg</alias>
|
|
<alias>dosini</alias>
|
|
<filename>*.ini</filename>
|
|
<filename>*.cfg</filename>
|
|
<filename>*.inf</filename>
|
|
<filename>*.service</filename>
|
|
<filename>*.socket</filename>
|
|
<filename>.gitconfig</filename>
|
|
<filename>.editorconfig</filename>
|
|
<filename>pylintrc</filename>
|
|
<filename>.pylintrc</filename>
|
|
<mime_type>text/x-ini</mime_type>
|
|
<mime_type>text/inf</mime_type>
|
|
<priority>0.1</priority> <!-- higher priority than Inform 6 -->
|
|
</config>
|
|
<rules>
|
|
<state name="root">
|
|
<rule pattern="\s+">
|
|
<token type="Text"/>
|
|
</rule>
|
|
<rule pattern="[;#].*">
|
|
<token type="CommentSingle"/>
|
|
</rule>
|
|
<rule pattern="\[.*?\]$">
|
|
<token type="Keyword"/>
|
|
</rule>
|
|
<rule pattern="(.*?)([ \t]*)(=)([ \t]*)(.*(?:\n[ \t].+)*)">
|
|
<bygroups>
|
|
<token type="NameAttribute"/>
|
|
<token type="Text"/>
|
|
<token type="Operator"/>
|
|
<token type="Text"/>
|
|
<token type="LiteralString"/>
|
|
</bygroups>
|
|
</rule>
|
|
<rule pattern="(.+?)$">
|
|
<token type="NameAttribute"/>
|
|
</rule>
|
|
</state>
|
|
</rules>
|
|
</lexer> |