Skip to content

Commit 610bc2b

Browse files
committed
Prefix RE_TO_DOWNTO_AS_LABELS patterns with ~ to ensure they only apply to labelled arguments
1 parent a28180b commit 610bc2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grammars/rescript.tmLanguage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"RE_TO_DOWNTO_AS_LABELS": {
1111
"patterns": [
1212
{
13-
"match": "(to|downto)\\s*(=)",
13+
"match": "~(to|downto)\\s*(=)",
1414
"captures": {
1515
"1": {
1616
"name": "variable"
@@ -21,7 +21,7 @@
2121
}
2222
},
2323
{
24-
"match": "(to|downto)\\s+(as)",
24+
"match": "~(to|downto)\\s+(as)",
2525
"captures": {
2626
"1": {
2727
"name": "variable"

0 commit comments

Comments
 (0)