cheat/vendor/github.com/alecthomas/chroma/v2/lexers/embedded/zed.xml
Christopher Allen Lane 1790aec85d chore(deps): bump chroma to v2 #735
Bump `alecthomas/chroma` to `v2`:
https://github.com/cheat/cheat/issues/735
2023-12-13 12:54:32 -05:00

51 lines
1.3 KiB
XML

<lexer>
<config>
<name>Zed</name>
<alias>zed</alias>
<filename>*.zed</filename>
<mime_type>text/zed</mime_type>
</config>
<rules>
<state name="root">
<rule pattern="\n">
<token type="TextWhitespace"/>
</rule>
<rule pattern="\s+">
<token type="TextWhitespace"/>
</rule>
<rule pattern="//.*?\n">
<token type="CommentSingle"/>
</rule>
<rule pattern="/(\\\n)?[*][\w\W]*?[*](\\\n)?/">
<token type="CommentMultiline"/>
</rule>
<rule pattern="/(\\\n)?[*][\w\W]*">
<token type="CommentMultiline"/>
</rule>
<rule pattern="(definition)\b">
<token type="KeywordType"/>
</rule>
<rule pattern="(relation)\b">
<token type="KeywordNamespace"/>
</rule>
<rule pattern="(permission)\b">
<token type="KeywordDeclaration"/>
</rule>
<rule pattern="[a-zA-Z_]\w*/">
<token type="NameNamespace"/>
</rule>
<rule pattern="[a-zA-Z_]\w*">
<token type="Name"/>
</rule>
<rule pattern="#[a-zA-Z_]\w*">
<token type="NameVariable"/>
</rule>
<rule pattern="[+%=&gt;&lt;|^!?/\-*&amp;~:]">
<token type="Operator"/>
</rule>
<rule pattern="[{}()\[\],.;]">
<token type="Punctuation"/>
</rule>
</state>
</rules>
</lexer>