fix(julia): misc fixes to type highlighting

This patch fixes two issues related to `@type` capturing (split out from
https://github.com/nvim-treesitter/nvim-treesitter/pull/7392):

 - Capture the RHS of `<:` and `>:` as `@type` in `(unary_expression)`s
   similarly to what is already done for `(binary_expression)`s with
   these operators.
 - Capture children of `(curly_expression)`s inside of
   `(where_expression)`s as `@type` similarly how they are handled in
   `(parametrized_type_expression)`.
This commit is contained in:
Fredrik Ekre 2024-11-22 16:51:33 +01:00 committed by Christian Clason
parent 28a5dc06a8
commit e05c280659

View file

@ -73,7 +73,16 @@
(identifier) @type .)
(where_expression
(_) @type .)
[
(curly_expression
(_) @type)
(_) @type
] .)
(unary_expression
(operator) @operator
(_) @type
(#any-of? @operator "<:" ">:"))
(binary_expression
(_) @type