Skip to content

Commit ff2c472

Browse files
authored
Merge pull request #4999 from JakubValtar/fix-preproc-comments
Fix preproc skipping one char after a block comment
2 parents cb1fcce + 604ae64 commit ff2c472

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)