diff options
| author | zc he <blindfs19@gmail.com> | 2025-10-21 15:10:18 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-21 09:10:18 +0200 |
| commit | 30c466ad571b8b99fd06e3df8b2336e3ae63a53a (patch) | |
| tree | 306f9e994540334a327b80f619def7451f3a4a94 /runtime | |
| parent | feat(parsers): update ada, cmake, desktop, dot, mlir, nu, qmljs, sparql, sql,... (diff) | |
| download | nvim-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.scm | 19 |
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 |
