From 95ea5783a39730ba1fec0d393a9c9f7cbf7606ad Mon Sep 17 00:00:00 2001 From: Arseniy Terekhin Date: Sat, 20 Apr 2024 17:40:37 +0300 Subject: [PATCH] dev: fix invalid `if` condition, syntax tree pdf is much better now --- pikchr/syntax_tree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pikchr/syntax_tree.py b/pikchr/syntax_tree.py index b448830..cdf5f8d 100755 --- a/pikchr/syntax_tree.py +++ b/pikchr/syntax_tree.py @@ -36,7 +36,7 @@ def parse(filename: str): "prsep", "rvalue", "savelist", - "unnamed_statement", + # "unnamed_statement", "withclause", "optrelexpr", # "objectname", recursion @@ -81,7 +81,7 @@ def render( dbg_count += 1 dot2_key = f"{orig_value}_{dot_key}_{dbg_count}" value = replace.get(orig_value, orig_value) - if value in enumerate(subgraphs): + if value in subgraphs: dot2_key = f"{value}_{dot_key}_{dbg_count}" with dot.subgraph( name=dot2_key,