summaryrefslogtreecommitdiff
path: root/vendor/github.com/alecthomas/chroma/v2/lexers/embedded/lighttpd.xml
blob: 1319e5c838c2cfeb280b02f9bca4562c1f83b716 (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
38
39
40
41
42
<lexer>
  <config>
    <name>Lighttpd configuration file</name>
    <alias>lighty</alias>
    <alias>lighttpd</alias>
    <mime_type>text/x-lighttpd-conf</mime_type>
  </config>
  <rules>
    <state name="root">
      <rule pattern="#.*\n">
        <token type="CommentSingle"/>
      </rule>
      <rule pattern="/\S*">
        <token type="Name"/>
      </rule>
      <rule pattern="[a-zA-Z._-]+">
        <token type="Keyword"/>
      </rule>
      <rule pattern="\d+\.\d+\.\d+\.\d+(?:/\d+)?">
        <token type="LiteralNumber"/>
      </rule>
      <rule pattern="[0-9]+">
        <token type="LiteralNumber"/>
      </rule>
      <rule pattern="=&gt;|=~|\+=|==|=|\+">
        <token type="Operator"/>
      </rule>
      <rule pattern="\$[A-Z]+">
        <token type="NameBuiltin"/>
      </rule>
      <rule pattern="[(){}\[\],]">
        <token type="Punctuation"/>
      </rule>
      <rule pattern="&#34;([^&#34;\\]*(?:\\.[^&#34;\\]*)*)&#34;">
        <token type="LiteralStringDouble"/>
      </rule>
      <rule pattern="\s+">
        <token type="Text"/>
      </rule>
    </state>
  </rules>
</lexer>