We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6919bef commit e7a625bCopy full SHA for e7a625b
1 file changed
java/src/processing/mode/java/preproc/PdePreprocessor.java
@@ -730,10 +730,16 @@ static public String scrubComments(String what) {
730
throw new RuntimeException("Missing the */ from the end of a " +
731
"/* comment */");
732
}
733
- } else if (p[index] == '"' && index > 0 && p[index-1] != '\\') {
+
734
+ // switch in/out of quoted region
735
+ } else if (p[index] == '"') {
736
insideQuote = !insideQuote;
737
index++;
738
739
+ // skip the escaped char
740
+ } else if (insideQuote && p[index] == '\\') {
741
+ index += 2;
742
743
} else { // any old character, move along
744
745
0 commit comments