Skip to content

Commit d4ceba1

Browse files
committed
change let coloring to keyword, not control
1 parent 4faa239 commit d4ceba1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

grammars/rescript.tmLanguage.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
},
1616
"RE_KEYWORDS": {
1717
"name": "keyword.control",
18-
"match": "\\b(and|as|assert|constraint|downto|else|exception|external|false|for|if|in|include|lazy|let|module|mutable|of|open|rec|switch|to|true|try|type|when|while|with)\\b"
18+
"match": "\\b(and|as|assert|constraint|downto|else|exception|external|false|for|if|in|include|lazy|module|mutable|of|open|rec|switch|to|true|try|type|when|while|with)\\b"
19+
},
20+
"RE_LET": {
21+
"name": "keyword",
22+
"match": "\\b(let)\\b"
1923
},
2024
"RE_LITERAL": {
2125
"name": "constant.language",
@@ -91,6 +95,9 @@
9195
"patterns": [
9296
{
9397
"include": "#RE_KEYWORDS"
98+
},
99+
{
100+
"include": "#RE_LET"
94101
}
95102
]
96103
},

0 commit comments

Comments
 (0)