mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
fix import regexp to not pick up so much garbage (bug #1064)
This commit is contained in:
@@ -240,7 +240,8 @@ public class PdePreprocessor {
|
||||
String prefsLine = Preferences.get("preproc.imports");
|
||||
defaultImports = PApplet.splitTokens(prefsLine, ", ");
|
||||
|
||||
String importRegexp = "(?:^|\\s|;)(import\\s+)(\\S+)(\\s*;)";
|
||||
//String importRegexp = "(?:^|\\s|;)(import\\s+)(\\S+)(\\s*;)";
|
||||
String importRegexp = "(?:^|;)\\s*(import\\s+)(\\S+)(\\s*;)";
|
||||
programImports = new ArrayList<String>();
|
||||
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user