fix(nu): separate patterns for collection_type

This commit is contained in:
zc he 2025-10-21 15:10:18 +08:00 committed by GitHub
parent 71bf1665f8
commit 30c466ad57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -344,14 +344,19 @@ key: (identifier) @property
[ [
"record" "record"
"table" "table"
] @type.builtin ] @type.builtin)
"<" @punctuation.bracket
key: (_) @variable.parameter (collection_type
key: (_) @variable.parameter)
(collection_type
[ [
"," "<"
":" ">"
] @punctuation.delimiter ] @punctuation.bracket)
">" @punctuation.bracket)
(collection_type
":" @punctuation.special)
(shebang) @keyword.directive (shebang) @keyword.directive