mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 12:50:09 -04:00
Fix formatting
This commit is contained in:
parent
0f06fba7ac
commit
1de2016415
1 changed files with 3 additions and 1 deletions
|
|
@ -179,7 +179,9 @@ function M.get_indent(lnum)
|
|||
end
|
||||
-- Recursively search upwards for any @indent.end nodes
|
||||
local tmp = node
|
||||
while tmp and not q["indent.end"][tmp:id()] do tmp = tmp:parent() end
|
||||
while tmp and not q["indent.end"][tmp:id()] do
|
||||
tmp = tmp:parent()
|
||||
end
|
||||
if tmp then
|
||||
node = get_first_node_at_line(root, lnum)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue