mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
Improve "void setup" regexp
Now captures multiple whitespace characters between "void" and "setup"
This commit is contained in:
@@ -171,7 +171,7 @@ public class PdePreprocessor {
|
||||
// "(?:^|\\s|;)void\\s";
|
||||
/** Used to grab the start of setup() so we can mine it for size() */
|
||||
static private final String VOID_SETUP_REGEX =
|
||||
"(?:^|\\s|;)void\\ssetup\\s*\\(";
|
||||
"(?:^|\\s|;)void\\s+setup\\s*\\(";
|
||||
|
||||
|
||||
// Can't only match any 'public class', needs to be a PApplet
|
||||
|
||||
Reference in New Issue
Block a user