From 8f7c1041a2cc722d31c3f8cb23c24e218fcb9129 Mon Sep 17 00:00:00 2001 From: Dmitry Zakharov Date: Thu, 29 Feb 2024 18:12:13 +0400 Subject: [PATCH 1/2] Add highlighting for dict{} literal --- grammars/rescript.tmLanguage.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" }, From 0ab1f34227b5288b12412d8c6a4c35494b2829da Mon Sep 17 00:00:00 2001 From: Dmitry Zakharov Date: Mon, 2 Sep 2024 14:11:42 +0400 Subject: [PATCH 2/2] Add changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) 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