Pass reference to parser in stack's tree selection callback

This commit is contained in:
Max Brunsfeld 2015-12-08 12:20:50 -08:00
parent 4abb415113
commit 10286f307f
4 changed files with 21 additions and 8 deletions

View file

@ -43,7 +43,9 @@ describe("Stack", [&]() {
TSSymbolMetadata metadata = {true, true, true};
before_each([&]() {
stack = ts_stack_new({
stack = ts_stack_new();
ts_stack_set_tree_selection_callback(stack, {
&tree_selection_spy,
tree_selection_spy_callback
});