summaryrefslogtreecommitdiff
path: root/vendor/github.com/alecthomas/chroma/v2/lexers/embedded/pacmanconf.xml
blob: caf7236757e627daa366912d67b4f46c2b23dc0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<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>