Properly incorporate lookahead bytes when recovering via missing token

This commit is contained in:
Max Brunsfeld 2022-03-02 16:46:24 -08:00
parent 7170ec7c96
commit 8decec3774
3 changed files with 12 additions and 6 deletions

View file

@ -559,10 +559,11 @@ Subtree ts_subtree_new_missing_leaf(
SubtreePool *pool,
TSSymbol symbol,
Length padding,
uint32_t lookahead_bytes,
const TSLanguage *language
) {
Subtree result = ts_subtree_new_leaf(
pool, symbol, padding, length_zero(), 0,
pool, symbol, padding, length_zero(), lookahead_bytes,
0, false, false, false, language
);
if (result.data.is_inline) {