From d5c3c96b36cb69044b5254d6059a3324b0060079 Mon Sep 17 00:00:00 2001 From: Dmitry Zakharov Date: Thu, 29 Feb 2024 18:12:13 +0400 Subject: [PATCH] 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 3b97b3aa6..086fb761f 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" @@ -549,7 +549,7 @@ { "include": "#string" }, { "include": "#attribute" }, { "include": "#function" }, - { "include": "#list" }, + { "include": "#entity-literal" }, { "include": "#jsx" }, { "include": "#operator" }, { "include": "#number" },