Skip to content

Commit

Permalink
Fixed nested folding bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-suliga committed Sep 25, 2024
1 parent 37d8def commit de3ef6b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,7 @@ private void computeFoldingStructureOfControlStatements(String source, FoldingSt
scanner.setSource(source.toCharArray());
Stack<Integer> blockStarts = new Stack<>();
int token;

try {
while ((token = scanner.getNextToken()) != ITerminalSymbols.TokenNameEOF) {
switch (token) {
Expand Down

0 comments on commit de3ef6b

Please sign in to comment.