Skip to content

Commit 604ae64

Browse files
committed
Fix preproc skipping one char after a block comment
Fixes #4995
1 parent 6f6d703 commit 604ae64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/src/processing/mode/java/preproc/PdePreprocessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ private static void checkForUnterminatedMultilineComment(final String program)
811811
boolean terminated = false;
812812
while (i < length - 1) {
813813
if ((program.charAt(i) == '*') && (program.charAt(i + 1) == '/')) {
814-
i += 2;
814+
i++; // advance to the ending '/'
815815
terminated = true;
816816
break;
817817
} else {

0 commit comments

Comments
 (0)