blob: 929f4953206d3c74a9585943d04094e9cc809c33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<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="[+%=><|^!?/\-*&~:]">
<token type="Operator"/>
</rule>
<rule pattern="[{}()\[\],.;]">
<token type="Punctuation"/>
</rule>
</state>
</rules>
</lexer>
|