mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-13 23:12:24 +00:00
35 lines
937 B
XML
35 lines
937 B
XML
|
<lexer>
|
||
|
<config>
|
||
|
<name>Xorg</name>
|
||
|
<alias>xorg.conf</alias>
|
||
|
<filename>xorg.conf</filename>
|
||
|
</config>
|
||
|
<rules>
|
||
|
<state name="root">
|
||
|
<rule pattern="\s+">
|
||
|
<token type="TextWhitespace"/>
|
||
|
</rule>
|
||
|
<rule pattern="#.*$">
|
||
|
<token type="Comment"/>
|
||
|
</rule>
|
||
|
<rule pattern="((|Sub)Section)(\s+)("\w+")">
|
||
|
<bygroups>
|
||
|
<token type="KeywordNamespace"/>
|
||
|
<token type="LiteralStringEscape"/>
|
||
|
<token type="TextWhitespace"/>
|
||
|
<token type="LiteralStringEscape"/>
|
||
|
</bygroups>
|
||
|
</rule>
|
||
|
<rule pattern="(End(|Sub)Section)">
|
||
|
<token type="KeywordNamespace"/>
|
||
|
</rule>
|
||
|
<rule pattern="(\w+)(\s+)([^\n#]+)">
|
||
|
<bygroups>
|
||
|
<token type="NameKeyword"/>
|
||
|
<token type="TextWhitespace"/>
|
||
|
<token type="LiteralString"/>
|
||
|
</bygroups>
|
||
|
</rule>
|
||
|
</state>
|
||
|
</rules>
|
||
|
</lexer>
|