45 lines
1.2 KiB
XML
45 lines
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>
|