Revert "bugfix: crashing treesitter"

This reverts commit d24946e94b.
This commit is contained in:
Ivar Fatland
2026-04-18 18:34:21 +02:00
parent 33ce9addb4
commit 6d974cff46
@@ -138,9 +138,6 @@ query.add_directive("set-lang-from-info-string!", function(match, _, bufnr, pred
if not node then
return
end
if not node.range then
return -- TODO: What is goin on here???
end
local injection_alias = vim.treesitter.get_node_text(node, bufnr):lower()
metadata["injection.language"] = get_parser_from_markdown_info_string(injection_alias)
end, opts)