Skip to content

Commit

Permalink
Merge pull request #34 from Hamster5295/master
Browse files Browse the repository at this point in the history
Fix the bug when indenting multiple modules
  • Loading branch information
ericsonj authored Jan 2, 2024
2 parents 4b362c2 + 6ad5508 commit c1608af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target/
nbactions.xml
.idea/
1 change: 1 addition & 0 deletions src/main/java/net/ericsonj/verilog/statements/Module.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public String indentLine(FileFormat format, String line) {
case WAIT_ENDMODULE:
if (matchesEndmodule(line)) {
format.states.poll();
format.resCountIndent();
return indent(format, moduleState.getBaseIndent(), line);
}
break;
Expand Down

0 comments on commit c1608af

Please sign in to comment.