diff --git a/CHANGELOG.md b/CHANGELOG.md index 6229dcdcb..b5ee5ca3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ ## master +#### :rocket: New Feature + +- Add hightlighting for the new dict literal syntax `dict{}`. https://github.com/rescript-lang/rescript-vscode/pull/934 + ## 1.56.0 #### :bug: Bug Fix diff --git a/grammars/rescript.tmLanguage.json b/grammars/rescript.tmLanguage.json index 5c1d5d460..c01154554 100644 --- a/grammars/rescript.tmLanguage.json +++ b/grammars/rescript.tmLanguage.json @@ -297,10 +297,10 @@ } ] }, - "list": { + "entity-literal": { "patterns": [ { - "match": "\\b(list)(\\{)", + "match": "\\b(list|dict)(\\{)", "captures": { "1": { "name": "keyword" @@ -548,7 +548,7 @@ { "include": "#string" }, { "include": "#attribute" }, { "include": "#function" }, - { "include": "#list" }, + { "include": "#entity-literal" }, { "include": "#jsx" }, { "include": "#operator" }, { "include": "#number" },