Skip to content

Commit 6364b41

Browse files
fhammerschmidtcristianoc
authored andcommitted
Add variant to grammar (as enumMember)
1 parent 2d74c5e commit 6364b41

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

grammars/rescript.tmLanguage.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@
247247
},
248248
"constructor": {
249249
"patterns": [
250+
{
251+
"match": "\\b[A-Z][0-9a-zA-Z_]*\\b",
252+
"name": "variable.other.enummember"
253+
},
250254
{
251255
"match": "(#)\\s*([a-zA-Z][0-9a-zA-Z_]*)\\b",
252256
"captures": {
@@ -544,4 +548,4 @@
544548
"include": "#defaultIdIsVariable"
545549
}
546550
]
547-
}
551+
}

0 commit comments

Comments
 (0)