aboutsummaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorzc he <blindfs19@gmail.com>2025-10-21 15:10:18 +0800
committerGitHub <noreply@github.com>2025-10-21 09:10:18 +0200
commit30c466ad571b8b99fd06e3df8b2336e3ae63a53a (patch)
tree306f9e994540334a327b80f619def7451f3a4a94 /runtime
parentfeat(parsers): update ada, cmake, desktop, dot, mlir, nu, qmljs, sparql, sql,... (diff)
downloadnvim-treesitter-30c466ad571b8b99fd06e3df8b2336e3ae63a53a.tar
nvim-treesitter-30c466ad571b8b99fd06e3df8b2336e3ae63a53a.tar.gz
nvim-treesitter-30c466ad571b8b99fd06e3df8b2336e3ae63a53a.tar.bz2
nvim-treesitter-30c466ad571b8b99fd06e3df8b2336e3ae63a53a.tar.lz
nvim-treesitter-30c466ad571b8b99fd06e3df8b2336e3ae63a53a.tar.xz
nvim-treesitter-30c466ad571b8b99fd06e3df8b2336e3ae63a53a.tar.zst
nvim-treesitter-30c466ad571b8b99fd06e3df8b2336e3ae63a53a.zip
fix(nu): separate patterns for `collection_type`
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/nu/highlights.scm19
1 files changed, 12 insertions, 7 deletions
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