From f6e94b6318a7f399a3bb448c2f56fd532d7de570 Mon Sep 17 00:00:00 2001 From: LemmusLemmus <63229554+LemmusLemmus@users.noreply.github.com> Date: Wed, 26 Mar 2025 21:21:50 +0100 Subject: [PATCH] Add operators 'has' & 'has-not', and shorten operators-word regex --- syntaxes/nushell.tmLanguage.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntaxes/nushell.tmLanguage.json b/syntaxes/nushell.tmLanguage.json index 8f855c0..ac7f520 100644 --- a/syntaxes/nushell.tmLanguage.json +++ b/syntaxes/nushell.tmLanguage.json @@ -207,7 +207,7 @@ "name": "keyword.control.nushell" }, "operators-word": { - "match": "(?<= |\\()(?:mod|in|not-in|not|and|or|xor|bit-or|bit-and|bit-xor|bit-shl|bit-shr|starts-with|ends-with|like|not-like)(?= |\\)|$)", + "match": "(?<= |\\()(?:mod|in|not-(?:in|like|has)|not|and|or|xor|bit-(?:or|and|xor|shl|shr)|starts-with|ends-with|like|has)(?= |\\)|$)", "name": "keyword.control.nushell" }, "operators-symbols": {