Skip to content

Commit 4e1eca6

Browse files
committed
Boolean was not invited to the party
1 parent fc77240 commit 4e1eca6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

java/src/processing/mode/java/pdex/ErrorCheckerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public class ErrorCheckerService implements Runnable {
227227
*/
228228
private static final Pattern SETUP_OR_DRAW_FUNCTION_DECL =
229229
Pattern.compile("(^|;)\\s*((public|private|protected|final|static)\\s+)*" +
230-
"(void|int|float|double|String|char|byte)" +
230+
"(void|int|float|double|String|char|byte|boolean)" +
231231
"(\\s*\\[\\s*\\])?\\s+(setup|draw)\\s*\\(",
232232
Pattern.MULTILINE);
233233

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public static enum Mode {
193193
*/
194194
private static final Pattern SETUP_OR_DRAW_FUNCTION_DECL =
195195
Pattern.compile("(^|;)\\s*((public|private|protected|final|static)\\s+)*" +
196-
"(void|int|float|double|String|char|byte)" +
196+
"(void|int|float|double|String|char|byte|boolean)" +
197197
"(\\s*\\[\\s*\\])?\\s+(setup|draw)\\s*\\(",
198198
Pattern.MULTILINE);
199199

0 commit comments

Comments
 (0)