File tree 1 file changed +21
-27
lines changed
1 file changed +21
-27
lines changed Original file line number Diff line number Diff line change 33
33
[
34
34
(comma)
35
35
";"
36
- (qualified_module) ; grabs the `.` (dot), ex: import System.IO
37
36
"."
38
37
] @punctuation.delimiter
39
38
47
46
"else"
48
47
"case"
49
48
"of"
50
- ] @conditional
49
+ ] @keyword
51
50
52
51
[
53
52
"import"
54
53
"module"
55
- ] @include
54
+ ] @keyword
56
55
57
56
[
58
57
(operator)
76
75
"@"
77
76
] @operator
78
77
79
- (qualified_module
80
- (module) @constructor)
81
-
82
- (module) @namespace
83
78
84
- (qualified_type
85
- (module) @namespace)
86
-
87
- (qualified_variable
88
- (module) @namespace)
89
-
90
- (import
91
- (module) @namespace)
79
+ (module) @type.builtin
92
80
93
81
[
94
82
(where)
132
120
(exp_apply
133
121
.
134
122
(exp_name
135
- (variable) @function))
123
+ (variable) @function.call ))
136
124
137
125
(exp_apply
138
126
.
139
127
(exp_name
140
128
(qualified_variable
141
- (variable) @function)))
129
+ (variable) @function.call )))
142
130
143
131
(row_field
144
- (field_name) @field )
132
+ (field_name) @constant )
145
133
146
134
(record_field
147
- (field_name) @field )
135
+ (field_name) @constant )
148
136
149
137
(record_field
150
- (field_pun) @field )
138
+ (field_pun) @constant )
151
139
152
140
(record_accessor
153
141
field: [ (variable)
154
142
(string)
155
143
(triple_quote_string)
156
- ] @variable.other.member )
144
+ ] @variable )
157
145
158
146
(exp_record_access
159
147
field: [ (variable)
160
148
(string)
161
149
(triple_quote_string)
162
- ] @variable.other.member)
150
+ ] @variable )
151
+
152
+ (pat_wildcard) @operator
153
+
154
+ (field_wildcard) @operator
155
+
156
+ (pat_field (field_name) @constant )
157
+
158
+ (record_update (field_name) @constant )
163
159
164
160
(signature
165
- name: (variable) @type )
161
+ name: (variable) @function )
166
162
167
163
(kind_declaration
168
164
(class_name) @type )
169
165
170
166
(function
171
- name: (variable) @function)
167
+ name: (variable) @function.call )
172
168
173
169
(foreign_import
174
170
(variable) @function )
182
178
((variable) @boolean
183
179
(#any-of? @boolean "true" "false"))
184
180
185
- ; The former one works for `tree-sitter highlight` but not in Helix/Kakoune.
186
- ; The latter two work in Helix (but not Kakoune) and are a good compromise between not highlighting anything at all
187
- ; as an operator and leaving it to the child nodes, and highlighting everything as an operator.
188
181
(exp_ticked
189
182
(_) @operator )
190
183
201
194
; Types
202
195
203
196
(type) @type
197
+ (type_variable) @type.argument
204
198
205
199
(constructor) @constructor
You can’t perform that action at this time.
0 commit comments