Skip to content

Commit 254edb0

Browse files
committed
Include captured summary information in stack debug graphs
1 parent 548c12f commit 254edb0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/stack.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,8 @@ bool ts_stack_print_dot_graph(Stack *self, const TSLanguage *language, FILE *f)
777777
);
778778

779779
if (head->summary) {
780-
fprintf(f, "\nsummary_size: %u", head->summary->size);
780+
fprintf(f, "\nsummary:");
781+
for (uint32_t j = 0; j < head->summary->size; j++) fprintf(f, " %u", head->summary->contents[j].state);
781782
}
782783

783784
if (head->last_external_token.ptr) {

0 commit comments

Comments
 (0)