mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 06:50:06 -04:00
feat: improve indent module
get_node_at_line should return appropriate child if available
This commit is contained in:
parent
f048886f82
commit
baf94219aa
5 changed files with 38 additions and 11 deletions
|
|
@ -13,18 +13,21 @@
|
|||
(arguments)
|
||||
] @indent
|
||||
|
||||
@ignore
|
||||
|
||||
[
|
||||
"do"
|
||||
"end"
|
||||
"then"
|
||||
"until"
|
||||
"{"
|
||||
"}"
|
||||
"("
|
||||
")"
|
||||
"then"
|
||||
(else_statement)
|
||||
"elseif"
|
||||
(elseif_statement)
|
||||
"else"
|
||||
(else_statement)
|
||||
] @branch
|
||||
|
||||
(comment) @ignore
|
||||
|
||||
(string) @ignore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue