Skip to content

Commit c1608af

Browse files
authored
Merge pull request #34 from Hamster5295/master
Fix the bug when indenting multiple modules
2 parents 4b362c2 + 6ad5508 commit c1608af

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
target/
22
nbactions.xml
3+
.idea/

src/main/java/net/ericsonj/verilog/statements/Module.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public String indentLine(FileFormat format, String line) {
4343
case WAIT_ENDMODULE:
4444
if (matchesEndmodule(line)) {
4545
format.states.poll();
46+
format.resCountIndent();
4647
return indent(format, moduleState.getBaseIndent(), line);
4748
}
4849
break;

0 commit comments

Comments
 (0)