Skip to content

Commit ce34fd2

Browse files
committed
Highlight poly variant
Fixes #30
1 parent 052def1 commit ce34fd2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

grammars/rescript.tmLanguage.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,16 @@
214214
"name": "variable.function variable.other"
215215
},
216216
{
217-
"match": "(#)(\\.\\.\\.)?[a-zA-Z][0-9a-zA-Z_]*\\b",
217+
"match": "(#)(\\.\\.\\.)?([a-zA-Z][0-9a-zA-Z_]*)\\b",
218218
"captures": {
219219
"1": {
220220
"name": "punctuation.definition.keyword"
221221
},
222222
"2": {
223223
"name": "punctuation.definition.keyword"
224+
},
225+
"3": {
226+
"name": "variable.function variable.other"
224227
}
225228
}
226229
}

0 commit comments

Comments
 (0)