fix(treesitter): incorrect method name call

This commit is contained in:
Steven Sojka
2020-12-04 16:15:47 -06:00
parent 0c8d6ab536
commit 2985c17867
2 changed files with 22 additions and 1 deletions

View File

@@ -445,7 +445,7 @@ end
function LanguageTree:language_for_range(range)
for _, child in pairs(self._children) do
if child:contains(range) then
return child:node_for_range(range)
return child:language_for_range(range)
end
end