diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-08-14 21:58:48 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-08-23 16:35:35 +0200 |
commit | 0562c182aba6e99cbdeb302f6efa584d6642267f (patch) | |
tree | 933a57b7850ca779c11c85a5d0e88be8d37de675 /pyGHDL/dom/formatting/prettyprint.py | |
parent | 9d3e58db06faa9e204606b8ea6e7fc6cca6dbbab (diff) | |
download | ghdl-0562c182aba6e99cbdeb302f6efa584d6642267f.tar.gz ghdl-0562c182aba6e99cbdeb302f6efa584d6642267f.tar.bz2 ghdl-0562c182aba6e99cbdeb302f6efa584d6642267f.zip |
Handle bodies in case generate statements.
Diffstat (limited to 'pyGHDL/dom/formatting/prettyprint.py')
-rw-r--r-- | pyGHDL/dom/formatting/prettyprint.py | 3 |
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( |