Skip to content

Commit adf7486

Browse files
committed
Add deprecated highlighting
1 parent 7c8800f commit adf7486

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

grammars/rescript.tmLanguage.json

+20-2
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,12 @@
199199
"operator": {
200200
"patterns": [
201201
{
202-
"match": "->|\\|\\||&&|\\+\\+|\\*\\*|\\+\\.|\\+|-\\.|-|\\*\\.|\\*|/\\.|/|\\.\\.\\.|\\.\\.|\\|>|===|==|\\^|:=|!|>=(?! *\\?)|<=|=",
202+
"match": "->|\\|\\||&&|\\+\\+|\\*\\*|\\+\\.|\\+|-\\.|-|\\*\\.|\\*|/\\.|/|\\.\\.\\.|\\.\\.|===|==|\\^|:=|!|>=(?! *\\?)|<=|=",
203203
"name": "keyword.operator"
204+
},
205+
{
206+
"match": "\\|>",
207+
"name": "invalid.deprecated"
204208
}
205209
]
206210
},
@@ -276,12 +280,26 @@
276280
"attribute": {
277281
"patterns": [
278282
{
279-
"match": "(@@?)([A-Za-z_][A-Za-z0-9_\\.]*)",
283+
"match": "(@)(splice)",
280284
"captures": {
281285
"1": {
282286
"name": "storage.modifier punctuation.definition.annotation"
283287
},
284288
"2": {
289+
"name": "invalid.illegal"
290+
}
291+
}
292+
},
293+
{
294+
"match": "(@@?)(bs\\.)?([A-Za-z_][A-Za-z0-9_\\.]*)",
295+
"captures": {
296+
"1": {
297+
"name": "storage.modifier punctuation.definition.annotation"
298+
},
299+
"2": {
300+
"name": "invalid.deprecated"
301+
},
302+
"3": {
285303
"name": "variable.annotation"
286304
}
287305
}

0 commit comments

Comments
 (0)