Display pending stack links as dashed lines
This commit is contained in:
parent
91e3609fbf
commit
849ecf0a13
1 changed files with 3 additions and 1 deletions
|
|
@ -592,7 +592,9 @@ int ts_stack_print_dot_graph(Stack *self, const char **symbol_names, FILE *f) {
|
|||
|
||||
for (int j = 0; j < node->successor_count; j++) {
|
||||
StackLink successor = node->successors[j];
|
||||
fprintf(f, "node_%p -> node_%p [label=\"", node, successor.node);
|
||||
fprintf(f, "node_%p -> node_%p [", node, successor.node);
|
||||
if (successor.is_pending) fprintf(f, "style=dashed ");
|
||||
fprintf(f, "label=\"");
|
||||
|
||||
if (successor.tree->symbol == ts_builtin_sym_error) {
|
||||
fprintf(f, "ERROR");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue