cheat/vendor/github.com/alecthomas/chroma/v2/lexers/embedded/pacmanconf.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

37 lines
No EOL
915 B
XML

<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>
</lexer>