Revert "refactor(treesitter): use scratch buffer for string parser" #36964

This reverts commit 2a7cb32959.
This commit is contained in:
Riley Bruins
2025-12-14 23:09:36 -08:00
committed by GitHub
parent 981ea41abb
commit 976a47e81b
5 changed files with 66 additions and 70 deletions

View File

@@ -5,7 +5,7 @@ error('Cannot require a meta file')
---@alias TSLoggerCallback fun(logtype: 'parse'|'lex', msg: string)
---@class TSParser: userdata
---@field parse fun(self: TSParser, tree: TSTree?, source: integer, include_bytes: boolean, timeout_ns: integer?): TSTree?, (Range4|Range6)[]
---@field parse fun(self: TSParser, tree: TSTree?, source: integer|string, include_bytes: boolean, timeout_ns: integer?): TSTree?, (Range4|Range6)[]
---@field reset fun(self: TSParser)
---@field included_ranges fun(self: TSParser, include_bytes: boolean?): integer[]
---@field set_included_ranges fun(self: TSParser, ranges: (Range6|TSNode)[])