aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/formatting/prettyprint.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyGHDL/dom/formatting/prettyprint.py')
-rw-r--r--pyGHDL/dom/formatting/prettyprint.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyGHDL/dom/formatting/prettyprint.py b/pyGHDL/dom/formatting/prettyprint.py
index 7fa49389d..2f582a5f8 100644
--- a/pyGHDL/dom/formatting/prettyprint.py
+++ b/pyGHDL/dom/formatting/prettyprint.py
@@ -730,6 +730,9 @@ class PrettyPrint:
prefix=prefix, label=case.Label, case=case
)
)
+ for stmt in case.Statements:
+ for line in self.formatHierarchy(stmt, level + 2):
+ buffer.append(line)
elif isinstance(statement, ForGenerateStatement):
buffer.append(
"{prefix}- {label}: for {index} in {range} generate".format(