-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathKitchenSink.xml
164 lines (144 loc) · 4.56 KB
/
KitchenSink.xml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<?xml version="1.0" encoding="UTF-8"?>
<syntax name="prisma" xmlns="https://www.nova.app/syntax">
<meta>
<name>Kitchen Sink</name>
<type>script</type>
<preferred-file-extension>sink</preferred-file-extension>
<parent>markdown</parent>
<scriptable shebang="#!/usr/bin/env sink" />
</meta>
<detectors>
<extension priority="1.0">sink,md.sink</extension>
<filename priority="0.9">KitchenSink</filename>
<match-content lines="1" priority="0.8">^#!\/.+(sink)$</match-content>
<combo priority="0.7">
<extension>sink</extension>
<filename>kitchen</filename>
<match-content>everything-in-the-sink</match-content>
</combo>
</detectors>
<indentation>
<increase>
<expression>(\{[^}\"']*$)|(\[[^\]\"']*$)|(\([^)\"']*$)</expression>
</increase>
<decrease>
<expression>^\s*(\s*/\*.*\*/\s*)*[\}\]\)\\]</expression>
</decrease>
</indentation>
<symbols redefinition="within-construct">
<local scope="within-construct" />
</symbols>
<comments>
<single>
<expression>//</expression>
</single>
<multiline>
<starts-with>
<expression>/*</expression>
</starts-with>
<ends-with>
<expression>*/</expression>
</ends-with>
</multiline>
</comments>
<brackets>
<pair open="{" close="}" />
<pair open="[" close="]" />
<pair open="(" close=")" />
</brackets>
<surrounding-pairs>
<pair open="{" close="}" />
<pair open="[" close="]" />
<pair open="(" close=")" />
<pair open="'" close="'" />
<pair open="\" close="\" />
<pair open="`" close="`" />
</surrounding-pairs>
<collections>
<collection name="comments">
<scope name="comment.single" spell-check="true">
<expression>\/\/\s*(\w)</expression>
</scope>
<scope name="comment.multi-line" spell-check="true">
<starts-with>
<expression>\/*</expression>
</starts-with>
<ends-with>
<expression>*\\</expression>
</ends-with>
</scope>
</collection>
<collection name="misc">
<scope name="sink.identifier.variable">
<expression>\b(let)\s+([a-zA-ZÀ-ÖØ-öø-ÿ_][A-Za-zÀ-ÖØ-öø-ÿ0-9_]*)</expression>
<capture number="1" name="sink.keyword.let" />
<capture number="2" name="sink.identifier.variable.name" />
</scope>
<scope name="sink.function">
<starts-with>
<expression>(\[)</expression>
<capture number="1" name="sink.bracket" />
</starts-with>
<ends-with>
<expression>(\])</expression>
<capture number="1" name="sink.bracket" />
</ends-with>
<subscopes>
<scope name="sink.number">
<expression>\d+</expression>
</scope>
<scope name="sink.boolean">
<expression>true|false</expression>
</scope>
<scope name="sink.string">
<expression>"[^"]*"</expression>
</scope>
</subscopes>
</scope>
</collection>
<collection name="more-misc">
<scope name="html.tag.open.paired" spell-check="false" lookup="documentation">
<symbol type="tag-heading">
<display-name>
<component variable="name" />
<component selector="tag.attribute.value.id" prepend="#" />
<component selector="tag.attribute.value.class" prepend="." replace="\s+" replace-with="." />
</display-name>
<context behavior="start" group-by-name="true" unclosed="parent">
<auto-close string="</" completion="${name}>" />
</context>
</symbol>
<starts-with>
<strings prefix="<" suffix="\b" word-boundary="false" case-insensitive="true">
<string>h1</string>
<string>h2</string>
<string>h3</string>
</strings>
<capture number="1" name="html.tag.name" />
</starts-with>
</scope>
</collection>
</collections>
<scopes>
<include syntax="self" collection="comments" />
<scope name="sink.keyword">
<strings>
<string>kitchen</string>
<string>sink</string>
</strings>
</scope>
</scopes>
<tree-sitter language="">
<highlights />
<highlights path="highlights.scm" />
<symbols />
<symbols path="symbols.scm" />
<folds />
<folds path="folds.scm" />
<injections />
<injections path="injections.scm" />
<text-checking path="textChecking.scm" />
<colors />
<colors path="colors.scm" />
</tree-sitter>
</syntax>