Skip to content

Commit bb6a4dd

Browse files
authored
fix: Syntax highlighting broken for record keys containing brackets (#232)
1 parent d4561e4 commit bb6a4dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

syntaxes/nushell.tmLanguage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@
571571
{
572572
"match": "(\"(?:[^\"\\\\]|\\\\.)*\")\\s*(:)\\s*",
573573
"captures": {
574-
"1": { "name": "variable.other.nushell" },
574+
"1": { "name": "string.quoted.double.nushell variable.other.nushell" },
575575
"2": { "name": "keyword.control.nushell" }
576576
},
577577
"name": "meta.record-entry.nushell"
@@ -591,7 +591,7 @@
591591
{
592592
"match": "('[^']*')\\s*(:)\\s*",
593593
"captures": {
594-
"1": { "name": "variable.other.nushell" },
594+
"1": { "name": "string.quoted.single.nushell variable.other.nushell" },
595595
"2": { "name": "keyword.control.nushell" }
596596
},
597597
"name": "meta.record-entry.nushell"

0 commit comments

Comments
 (0)