tree-sitter / tree-sitter-julia

Julia grammar for Tree-sitter
MIT License
93 stars 31 forks source link

`if` inside comprehension not captured #94

Closed mroavi closed 1 year ago

mroavi commented 1 year ago

The if filter inside a comprehension is not captured. Would it be possible to support capturing and highlighting it?

[(i,j) for i=1:3 for j=1:i if i+j == 4]

image

savq commented 1 year ago

This happens in Neovim, right? It'd only require a small change to the nvim queries. See https://github.com/nvim-treesitter/nvim-treesitter/pull/4204

mroavi commented 1 year ago

Yes, it occurs in Neovim. Thanks for the fix!