We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a639c1 commit b9920beCopy full SHA for b9920be
java/src/processing/mode/java/pdex/SourceUtils.java
@@ -266,6 +266,14 @@ static public void scrubCommentsAndStrings(StringBuilder p) {
266
for (int i = 0; i <= length; i++) {
267
char ch = (i < length) ? p.charAt(i) : 0;
268
char pch = (i == 0) ? 0 : p.charAt(i-1);
269
+ // Get rid of double backslash immediately, otherwise
270
+ // the second backslash incorrectly triggers a new escape sequence
271
+ if (pch == '\\' && ch == '\\') {
272
+ p.setCharAt(i-1, ' ');
273
+ p.setCharAt(i, ' ');
274
+ pch = ' ';
275
+ ch = ' ';
276
+ }
277
switch (state) {
278
case OUT:
279
switch (ch) {
0 commit comments