...

Text file src/github.com/alecthomas/chroma/v2/lexers/embedded/xorg.xml

Documentation: github.com/alecthomas/chroma/v2/lexers/embedded

     1<lexer>
     2  <config>
     3    <name>Xorg</name>
     4    <alias>xorg.conf</alias>
     5    <filename>xorg.conf</filename>
     6  </config>
     7  <rules>
     8    <state name="root">
     9      <rule pattern="\s+">
    10        <token type="TextWhitespace"/>
    11      </rule>
    12      <rule pattern="#.*$">
    13        <token type="Comment"/>
    14      </rule>
    15      <rule pattern="((|Sub)Section)(\s+)(&#34;\w+&#34;)">
    16        <bygroups>
    17          <token type="KeywordNamespace"/>
    18          <token type="LiteralStringEscape"/>
    19          <token type="TextWhitespace"/>
    20          <token type="LiteralStringEscape"/>
    21        </bygroups>
    22      </rule>
    23      <rule pattern="(End(|Sub)Section)">
    24        <token type="KeywordNamespace"/>
    25      </rule>
    26      <rule pattern="(\w+)(\s+)([^\n#]+)">
    27        <bygroups>
    28          <token type="NameKeyword"/>
    29          <token type="TextWhitespace"/>
    30          <token type="LiteralString"/>
    31        </bygroups>
    32      </rule>
    33    </state>
    34  </rules>
    35</lexer>

View as plain text