Skip to content

Commit 1d16309

Browse files
authored
Add highlighting for dict{} literal (#934)
* Add highlighting for dict{} literal * Add changelog
1 parent 0b309d0 commit 1d16309

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
1313
## master
1414

15+
#### :rocket: New Feature
16+
17+
- Add hightlighting for the new dict literal syntax `dict{}`. https://github.com/rescript-lang/rescript-vscode/pull/934
18+
1519
## 1.56.0
1620

1721
#### :bug: Bug Fix

grammars/rescript.tmLanguage.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,10 @@
297297
}
298298
]
299299
},
300-
"list": {
300+
"entity-literal": {
301301
"patterns": [
302302
{
303-
"match": "\\b(list)(\\{)",
303+
"match": "\\b(list|dict)(\\{)",
304304
"captures": {
305305
"1": {
306306
"name": "keyword"
@@ -548,7 +548,7 @@
548548
{ "include": "#string" },
549549
{ "include": "#attribute" },
550550
{ "include": "#function" },
551-
{ "include": "#list" },
551+
{ "include": "#entity-literal" },
552552
{ "include": "#jsx" },
553553
{ "include": "#operator" },
554554
{ "include": "#number" },

0 commit comments

Comments
 (0)