fix: add missing node_id

Co-authored-by: Price Hiller <price@price-hiller.com>
This commit is contained in:
Pierre-Nicolas Watin-Augouard 2024-12-02 19:25:04 +01:00 committed by GitHub
parent bb65adf1df
commit e451e0c6eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,6 +46,7 @@ local function is_in_template_tag()
local current_node = cursor_node
local visited_nodes = {}
while not (has_element and has_template_string) and current_node do
local node_id = current_node:id()
if visited_nodes[node_id] then
break
end