Add ts_tree_edit function

This commit is contained in:
Max Brunsfeld 2015-09-15 16:00:16 -07:00
parent 296d8cc1e8
commit 0467d190fe
5 changed files with 234 additions and 42 deletions

View file

@ -81,7 +81,7 @@ static TSTree *ts_lexer__accept(TSLexer *lexer, TSSymbol symbol,
return ts_tree_make_error(size, padding, lexer->lookahead);
} else {
DEBUG("accept_token sym:%s", symbol_name);
return ts_tree_make_leaf(symbol, size, padding, node_type);
return ts_tree_make_leaf(symbol, padding, size, node_type);
}
}