Skip to content

Commit edadc30

Browse files
committed
Labels can have underscore.
1 parent a799d94 commit edadc30

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

analysis/tests/src/Parser.res

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,5 @@ let _ = x =>
128128
}
129129

130130
let _ = 3 == 3 || 3 === 3
131+
132+
let _ = (~_type_ as _) => ()

analysis/tests/src/expected/Parser.res.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Parse tests/src/Parser.res
2-
structure items:36 diagnostics:0
2+
structure items:37 diagnostics:0
33
Lident: M (0,7) Namespace
44
Lident: C (1,9) Namespace
55
Lident: Component (1,13) Namespace

grammars/rescript.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
"defaultIdIsVariable": {
239239
"patterns": [
240240
{
241-
"match": "[A-Za-z][A-Za-z0-9]*",
241+
"match": "[A-Za-z_][A-Za-z0-9_]*",
242242
"name": "variable"
243243
}
244244
]

0 commit comments

Comments
 (0)