Skip to content

Commit

Permalink
Add highlighting for dict{} literal (#934)
Browse files Browse the repository at this point in the history
* Add highlighting for dict{} literal

* Add changelog
  • Loading branch information
DZakh authored Sep 3, 2024
1 parent 0b309d0 commit 1d16309
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions grammars/rescript.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,10 @@
}
]
},
"list": {
"entity-literal": {
"patterns": [
{
"match": "\\b(list)(\\{)",
"match": "\\b(list|dict)(\\{)",
"captures": {
"1": {
"name": "keyword"
Expand Down Expand Up @@ -548,7 +548,7 @@
{ "include": "#string" },
{ "include": "#attribute" },
{ "include": "#function" },
{ "include": "#list" },
{ "include": "#entity-literal" },
{ "include": "#jsx" },
{ "include": "#operator" },
{ "include": "#number" },
Expand Down

0 comments on commit 1d16309

Please sign in to comment.