tartrazine/lexers/pacmanconf.xml

38 lines
916 B
XML
Raw Normal View History

2024-08-02 20:03:49 +00:00
<lexer>
<config>
<name>PacmanConf</name>
<alias>pacmanconf</alias>
<filename>pacman.conf</filename>
</config>
<rules>
<state name="root">
<rule pattern="#.*$">
<token type="CommentSingle"/>
</rule>
<rule pattern="^\s*\[.*?\]\s*$">
<token type="Keyword"/>
</rule>
<rule pattern="(\w+)(\s*)(=)">
<bygroups>
<token type="NameAttribute"/>
<token type="Text"/>
<token type="Operator"/>
</bygroups>
</rule>
<rule pattern="^(\s*)(\w+)(\s*)$">
<bygroups>
<token type="Text"/>
<token type="NameAttribute"/>
<token type="Text"/>
</bygroups>
</rule>
<rule pattern="(\$repo|\$arch|%o|%u)\b">
<token type="NameVariable"/>
</rule>
<rule pattern=".">
<token type="Text"/>
</rule>
</state>
</rules>
2024-08-26 23:18:28 +00:00
</lexer>