118
118
#^ invalid.illegal.stray-closing-brace
119
119
120
120
( fn -> ) end )
121
- # ^ invalid.illegal.stray-closing-parenthesis
121
+ # ^ invalid.illegal.stray-closing-parenthesis
122
122
fn -> end
123
123
# ^^^ punctuation.section.block.end keyword.context.block.end
124
124
# ^^ keyword.operator.arrow
162
162
# ^ variable.other -variable.parameter
163
163
# ^ variable.parameter
164
164
165
+ fn x when
166
+ # ^^^^ keyword.operator.when
167
+ # ^ variable.parameter
168
+ x -> x end
169
+ # ^^^ keyword.context.block.end
170
+ # ^ variable.other
171
+ # ^ variable.other
172
+
165
173
fn
166
- [ ] , acc -> acc
174
+ [ ] , acc \\ [ ] -> acc
175
+ # ^^ keyword.operator.default invalid.illegal.default-operator
167
176
# ^ punctuation.separator.sequence
168
177
x , acc -> [ x | acc ]
169
178
# ^ punctuation.separator.sequence
@@ -215,14 +224,14 @@ y -> y
215
224
z -> z
216
225
# ^ variable.other -variable.parameter
217
226
# ^^ keyword.operator.arrow
218
- #<- variable.other -variable. parameter
227
+ #<- variable.parameter
219
228
end
220
229
#^^ punctuation.section.block.end
221
230
fn -> x ; y -> z end
222
231
# ^^^ punctuation.section.block.end
223
232
# ^ variable.other
224
233
# ^^ keyword.operator.arrow
225
- # ^ - variable.parameter
234
+ # ^ variable.parameter
226
235
# ^ variable.other
227
236
# ^^ keyword.operator.arrow
228
237
fn x -> x ; y -> y end
282
291
-> var -> var
283
292
# ^^^ variable.other
284
293
# ^^ keyword.operator.arrow
285
- # ^^^ variable.other
294
+ # ^^^ variable.parameter
286
295
#^^ keyword.operator.arrow
287
296
expr
288
297
#^^^ variable.other
@@ -1252,8 +1261,8 @@ fn a,,b -> end
1252
1261
# ^ punctuation.section.group.end
1253
1262
# ^ invalid.illegal.stray-closing-parenthesis
1254
1263
( fn -> ) end )
1255
- # ^ punctuation.section.group.end
1256
- # ^ invalid.illegal.stray-closing-parenthesis
1264
+ # ^ invalid.illegal.stray-closing-parenthesis
1265
+ # ^ punctuation.section.group.end
1257
1266
1258
1267
[ ( ] )
1259
1268
# ^ invalid.illegal.stray-closing-parenthesis
@@ -1274,8 +1283,8 @@ fn a,,b -> end
1274
1283
# ^ punctuation.section.brackets.end
1275
1284
# ^ invalid.illegal.stray-closing-bracket
1276
1285
[ fn -> ] end ]
1277
- # ^ punctuation.section.brackets.end
1278
- # ^ invalid.illegal.stray-closing-bracket
1286
+ # ^ invalid.illegal.stray-closing-bracket
1287
+ # ^ punctuation.section.brackets.end
1279
1288
1280
1289
{ ( } )
1281
1290
# ^ invalid.illegal.stray-closing-parenthesis
@@ -1296,8 +1305,8 @@ fn a,,b -> end
1296
1305
# ^ punctuation.section.sequence.end
1297
1306
# ^ invalid.illegal.stray-closing-brace
1298
1307
{ fn -> } end }
1299
- # ^ punctuation.section.sequence.end
1300
- # ^ invalid.illegal.stray-closing-brace
1308
+ # ^ invalid.illegal.stray-closing-brace
1309
+ # ^ punctuation.section.sequence.end
1301
1310
1302
1311
% { ( } )
1303
1312
# ^ invalid.illegal.stray-closing-parenthesis
@@ -1318,8 +1327,8 @@ fn a,,b -> end
1318
1327
# ^ punctuation.section.mapping.end
1319
1328
# ^ invalid.illegal.stray-closing-brace
1320
1329
% { fn -> } end }
1321
- # ^ punctuation.section.mapping.end
1322
- # ^ invalid.illegal.stray-closing-brace
1330
+ # ^ invalid.illegal.stray-closing-brace
1331
+ # ^ punctuation.section.mapping.end
1323
1332
1324
1333
< < ( > > )
1325
1334
# ^ invalid.illegal.stray-closing-parenthesis
@@ -1340,8 +1349,8 @@ fn a,,b -> end
1340
1349
# ^^ punctuation.definition.string.end
1341
1350
# ^^ invalid.illegal.stray-closing-binary
1342
1351
<< fn -> > > end >>
1343
- # ^^ punctuation.definition.string.end
1344
- # ^^ invalid.illegal.stray-closing-binary
1352
+ # ^^ invalid.illegal.stray-closing-binary
1353
+ # ^^ punctuation.definition.string.end
1345
1354
1346
1355
do ( end )
1347
1356
# ^ invalid.illegal.stray-closing-parenthesis
0 commit comments