Include tree's original parse state in debug graphs
This commit is contained in:
parent
87ca3cb099
commit
f8c2e9d908
1 changed files with 2 additions and 2 deletions
|
|
@ -436,8 +436,8 @@ void ts_tree__print_dot_graph(const TSTree *self, size_t offset,
|
|||
if (self->extra)
|
||||
fprintf(f, ", fontcolor=gray");
|
||||
|
||||
fprintf(f, ", tooltip=\"%lu - %lu\"]\n", offset,
|
||||
offset + ts_tree_total_chars(self));
|
||||
fprintf(f, ", tooltip=\"range:%lu - %lu\nstate:%d\"]\n", offset,
|
||||
offset + ts_tree_total_chars(self), self->parse_state);
|
||||
for (size_t i = 0; i < self->child_count; i++) {
|
||||
const TSTree *child = self->children[i];
|
||||
ts_tree__print_dot_graph(child, offset, language, f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue