From 5a1da15c9c2070006d848c9cc91a54c940a5a567 Mon Sep 17 00:00:00 2001 From: LemmusLemmus <63229554+LemmusLemmus@users.noreply.github.com> Date: Tue, 25 Mar 2025 00:17:43 +0100 Subject: [PATCH 1/2] Add missing unit and operators --- 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 3d119cc..9130084 100644 --- a/syntaxes/nushell.tmLanguage.json +++ b/syntaxes/nushell.tmLanguage.json @@ -167,7 +167,7 @@ "name": "constant.numeric.nushell" }, "numbers": { - "match": "(? Date: Tue, 25 Mar 2025 00:18:32 +0100 Subject: [PATCH 2/2] Improve highlighting of bare and raw strings --- syntaxes/nushell.tmLanguage.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/syntaxes/nushell.tmLanguage.json b/syntaxes/nushell.tmLanguage.json index 9130084..8f855c0 100644 --- a/syntaxes/nushell.tmLanguage.json +++ b/syntaxes/nushell.tmLanguage.json @@ -20,8 +20,8 @@ { "include": "#string-double-quote" }, { "include": "#string-interpolated-double" }, { "include": "#string-interpolated-single" }, - { "include": "#string-bare" }, - { "include": "#string-raw" } + { "include": "#string-raw" }, + { "include": "#string-bare" } ] }, "string-escape": { @@ -29,11 +29,11 @@ "name": "constant.character.escape.nushell" }, "string-bare": { - "match": "[^$\\[{(\"',|#\\s|][^\\[\\]{}()\"'\\s#,|]*", + "match": "[^$\\[{(\"',|#\\s|;][^\\[\\]{}()\"'\\s,|;]*", "name": "string.bare.nushell" }, "string-raw": { - "begin": "(?<=r)(#+)'", + "begin": "r(#+)'", "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.nushell" } }, @@ -685,6 +685,7 @@ }, { "include": "#control-keywords" }, { "include": "#constant-value" }, + { "include": "#string-raw" }, { "include": "#command" }, { "include": "#value" } ]