mirror of
https://github.com/cheat/cheat.git
synced 2024-11-18 09:50:39 +01:00
1790aec85d
Bump `alecthomas/chroma` to `v2`: https://github.com/cheat/cheat/issues/735
45 lines
1.2 KiB
XML
45 lines
1.2 KiB
XML
<lexer>
|
|
<config>
|
|
<name>properties</name>
|
|
<alias>java-properties</alias>
|
|
<filename>*.properties</filename>
|
|
<mime_type>text/x-java-properties</mime_type>
|
|
</config>
|
|
<rules>
|
|
<state name="root">
|
|
<rule pattern="^([ \t\f]*)([#!].*)">
|
|
<bygroups>
|
|
<token type="Text"/>
|
|
<token type="CommentSingle"/>
|
|
</bygroups>
|
|
</rule>
|
|
<rule pattern="^([ \t\f]*)(\S+?)([ \t\f]*)([=:])([ \t\f]*)(.*(?:(?<=\\)\n.*)*)">
|
|
<bygroups>
|
|
<token type="Text"/>
|
|
<token type="NameAttribute"/>
|
|
<token type="Text"/>
|
|
<token type="Operator"/>
|
|
<token type="Text"/>
|
|
<token type="LiteralString"/>
|
|
</bygroups>
|
|
</rule>
|
|
<rule pattern="^([ \t\f]*)(\S+)([ \t\f]+)(.*(?:(?<=\\)\n.*)*)">
|
|
<bygroups>
|
|
<token type="Text"/>
|
|
<token type="NameAttribute"/>
|
|
<token type="Text"/>
|
|
<token type="LiteralString"/>
|
|
</bygroups>
|
|
</rule>
|
|
<rule pattern="^([ \t\f]*)(\w+)$">
|
|
<bygroups>
|
|
<token type="Text"/>
|
|
<token type="NameAttribute"/>
|
|
</bygroups>
|
|
</rule>
|
|
<rule pattern="\n">
|
|
<token type="Text"/>
|
|
</rule>
|
|
</state>
|
|
</rules>
|
|
</lexer>
|