From a9b055537d1bd4a0da3c683d5b094252eba5f2a7 Mon Sep 17 00:00:00 2001 From: mst-mkt Date: Sun, 24 May 2026 23:50:16 +0900 Subject: [PATCH] fix: treat brackets in quoted record keys as string content --- syntaxes/nushell.tmLanguage.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntaxes/nushell.tmLanguage.json b/syntaxes/nushell.tmLanguage.json index c515cfc..63bf2f2 100644 --- a/syntaxes/nushell.tmLanguage.json +++ b/syntaxes/nushell.tmLanguage.json @@ -571,7 +571,7 @@ { "match": "(\"(?:[^\"\\\\]|\\\\.)*\")\\s*(:)\\s*", "captures": { - "1": { "name": "variable.other.nushell" }, + "1": { "name": "string.quoted.double.nushell variable.other.nushell" }, "2": { "name": "keyword.control.nushell" } }, "name": "meta.record-entry.nushell" @@ -591,7 +591,7 @@ { "match": "('[^']*')\\s*(:)\\s*", "captures": { - "1": { "name": "variable.other.nushell" }, + "1": { "name": "string.quoted.single.nushell variable.other.nushell" }, "2": { "name": "keyword.control.nushell" } }, "name": "meta.record-entry.nushell"