We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2d24ac commit bb65adfCopy full SHA for bb65adf
lua/nvim-ts-autotag/internal.lua
@@ -44,7 +44,12 @@ local function is_in_template_tag()
44
local has_template_string = false
45
46
local current_node = cursor_node
47
+ local visited_nodes = {}
48
while not (has_element and has_template_string) and current_node do
49
+ if visited_nodes[node_id] then
50
+ break
51
+ end
52
+ visited_nodes[node_id] = true
53
if not has_element and current_node:type() == "element" then
54
has_element = true
55
end
0 commit comments