mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 05:22:23 +00:00
36 lines
938 B
XML
36 lines
938 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>
|