treesitter: use nodes to mark ranges

This commit is contained in:
Thomas Vigouroux
2020-06-16 08:17:25 +02:00
parent 558893b1b9
commit b652f74ca3
3 changed files with 83 additions and 85 deletions

View File

@@ -31,7 +31,7 @@ function Parser:_on_lines(bufnr, _, start_row, old_stop_row, stop_row, old_byte_
end
function Parser:set_included_ranges(ranges)
self._parser:set_included_ranges(self.bufnr, ranges)
self._parser:set_included_ranges(ranges)
-- The buffer will need to be parsed again later
self.valid = false
end