mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 18:55:06 +01:00
1790aec85d
Bump `alecthomas/chroma` to `v2`: https://github.com/cheat/cheat/issues/735
37 lines
915 B
XML
37 lines
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> |