Update Brackets.java

Fixed bug first spotted at http://code.google.com/p/processing/issues/detail?id=1032 where brackets aren't seen directly after a slash.
An example that failed:
min(1, x/(1.0));
min(1, x /(1.0));
This commit is contained in:
George Bateman
2014-01-10 17:48:20 +00:00
parent f3befb78fe
commit be28e4d220

View File

@@ -90,7 +90,7 @@ public class Brackets {
readComment(text);
} else if (d == '*') {
readMLComment(text);
}
} else pos--; // Go back because there isn't a comment.
} else if (c == '"' || c == '\'') {
readString(text, c);
} else if (c == '{' || c == '[' || c == '(' || c == '}' || c == ']'