mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 18:55:06 +01:00
1790aec85d
Bump `alecthomas/chroma` to `v2`: https://github.com/cheat/cheat/issues/735
46 lines
1.2 KiB
XML
46 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>
|