tartrazine/lexers/xorg.xml

36 lines
938 B
XML
Raw Normal View History

2024-08-02 20:03:49 +00:00
<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+)(&#34;\w+&#34;)">
<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>
2024-08-26 23:18:28 +00:00
</lexer>