Closed savq closed 1 year ago
I think it would be better to use block
instead of _block
. Makes it easier to do tree sitter based selection, for example select only the body of the function etc. That's how it is done for most grammars.
Exception for source_file
, there _block
should be OK.
That's how it is done for most grammars.
Is it? As far as I know, Lua is the only algol-like language that has explicit blocks.
For now, I only wanted to rename to _block
to align with Julia terminology and because it's easier to grep/jump to. But I'm not sure about making the rule visible... Neovim manages to match inner blocks, so it's doable.
@ChrHorn, could you open an issue to revisit that idea later?
@ChrHorn, could you open an issue to revisit that idea later?
Will do!
_expression_list
to_block
. "block" is the name used in Julia ASTs. See: https://docs.julialang.org/en/v1/devdocs/ast/#Block-formscompound_expression
tocompound_statement
Closes #13, closes #15, and closes #58 (duplicate) Closes #28 Closes #59