mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
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:
parent
28a5dc06a8
commit
e05c280659
1 changed files with 10 additions and 1 deletions
|
|
@ -73,7 +73,16 @@
|
|||
(identifier) @type .)
|
||||
|
||||
(where_expression
|
||||
(_) @type .)
|
||||
[
|
||||
(curly_expression
|
||||
(_) @type)
|
||||
(_) @type
|
||||
] .)
|
||||
|
||||
(unary_expression
|
||||
(operator) @operator
|
||||
(_) @type
|
||||
(#any-of? @operator "<:" ">:"))
|
||||
|
||||
(binary_expression
|
||||
(_) @type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue