From 30c466ad571b8b99fd06e3df8b2336e3ae63a53a Mon Sep 17 00:00:00 2001 From: zc he Date: Tue, 21 Oct 2025 15:10:18 +0800 Subject: fix(nu): separate patterns for `collection_type` --- runtime/queries/nu/highlights.scm | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'runtime') diff --git a/runtime/queries/nu/highlights.scm b/runtime/queries/nu/highlights.scm index e23a30fae..e008352d4 100644 --- a/runtime/queries/nu/highlights.scm +++ b/runtime/queries/nu/highlights.scm @@ -344,14 +344,19 @@ key: (identifier) @property [ "record" "table" - ] @type.builtin - "<" @punctuation.bracket - key: (_) @variable.parameter + ] @type.builtin) + +(collection_type + key: (_) @variable.parameter) + +(collection_type [ - "," - ":" - ] @punctuation.delimiter - ">" @punctuation.bracket) + "<" + ">" + ] @punctuation.bracket) + +(collection_type + ":" @punctuation.special) (shebang) @keyword.directive -- cgit v1.2.3-70-g09d2