118118#^ invalid.illegal.stray-closing-brace
119119
120120 ( fn -> ) end )
121- # ^ invalid.illegal.stray-closing-parenthesis
121+ # ^ invalid.illegal.stray-closing-parenthesis
122122 fn -> end
123123# ^^^ punctuation.section.block.end keyword.context.block.end
124124# ^^ keyword.operator.arrow
162162# ^ variable.other -variable.parameter
163163# ^ variable.parameter
164164
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+
165173fn
166- [ ] , acc -> acc
174+ [ ] , acc \\ [ ] -> acc
175+ # ^^ keyword.operator.default invalid.illegal.default-operator
167176# ^ punctuation.separator.sequence
168177 x , acc -> [ x | acc ]
169178# ^ punctuation.separator.sequence
@@ -215,14 +224,14 @@ y -> y
215224 z -> z
216225 # ^ variable.other -variable.parameter
217226 # ^^ keyword.operator.arrow
218- #<- variable.other -variable. parameter
227+ #<- variable.parameter
219228end
220229#^^ punctuation.section.block.end
221230fn -> x ; y -> z end
222231# ^^^ punctuation.section.block.end
223232# ^ variable.other
224233# ^^ keyword.operator.arrow
225- # ^ - variable.parameter
234+ # ^ variable.parameter
226235# ^ variable.other
227236# ^^ keyword.operator.arrow
228237fn x -> x ; y -> y end
282291 -> var -> var
283292 # ^^^ variable.other
284293 # ^^ keyword.operator.arrow
285- # ^^^ variable.other
294+ # ^^^ variable.parameter
286295 #^^ keyword.operator.arrow
287296 expr
288297 #^^^ variable.other
@@ -1252,8 +1261,8 @@ fn a,,b -> end
12521261# ^ punctuation.section.group.end
12531262# ^ invalid.illegal.stray-closing-parenthesis
12541263( fn -> ) end )
1255- # ^ punctuation.section.group.end
1256- # ^ invalid.illegal.stray-closing-parenthesis
1264+ # ^ invalid.illegal.stray-closing-parenthesis
1265+ # ^ punctuation.section.group.end
12571266
12581267[ ( ] )
12591268# ^ invalid.illegal.stray-closing-parenthesis
@@ -1274,8 +1283,8 @@ fn a,,b -> end
12741283# ^ punctuation.section.brackets.end
12751284# ^ invalid.illegal.stray-closing-bracket
12761285[ fn -> ] end ]
1277- # ^ punctuation.section.brackets.end
1278- # ^ invalid.illegal.stray-closing-bracket
1286+ # ^ invalid.illegal.stray-closing-bracket
1287+ # ^ punctuation.section.brackets.end
12791288
12801289{ ( } )
12811290# ^ invalid.illegal.stray-closing-parenthesis
@@ -1296,8 +1305,8 @@ fn a,,b -> end
12961305# ^ punctuation.section.sequence.end
12971306# ^ invalid.illegal.stray-closing-brace
12981307{ fn -> } end }
1299- # ^ punctuation.section.sequence.end
1300- # ^ invalid.illegal.stray-closing-brace
1308+ # ^ invalid.illegal.stray-closing-brace
1309+ # ^ punctuation.section.sequence.end
13011310
13021311% { ( } )
13031312# ^ invalid.illegal.stray-closing-parenthesis
@@ -1318,8 +1327,8 @@ fn a,,b -> end
13181327# ^ punctuation.section.mapping.end
13191328# ^ invalid.illegal.stray-closing-brace
13201329% { fn -> } end }
1321- # ^ punctuation.section.mapping.end
1322- # ^ invalid.illegal.stray-closing-brace
1330+ # ^ invalid.illegal.stray-closing-brace
1331+ # ^ punctuation.section.mapping.end
13231332
13241333< < ( > > )
13251334# ^ invalid.illegal.stray-closing-parenthesis
@@ -1340,8 +1349,8 @@ fn a,,b -> end
13401349# ^^ punctuation.definition.string.end
13411350# ^^ invalid.illegal.stray-closing-binary
13421351<< fn -> > > end >>
1343- # ^^ punctuation.definition.string.end
1344- # ^^ invalid.illegal.stray-closing-binary
1352+ # ^^ invalid.illegal.stray-closing-binary
1353+ # ^^ punctuation.definition.string.end
13451354
13461355do ( end )
13471356# ^ invalid.illegal.stray-closing-parenthesis
0 commit comments