mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-23 19:21:59 +03:00
Don't require a space between #include and < or ".
The space isn't required by the compiler, but the preprocessor needed one in order to use the #include to figure out which libraries the sketch used. That caused an error if you didn't have the space, because the corresponding library wasn't linked. http://code.google.com/p/arduino/issues/detail?id=975
This commit is contained in:
@ -110,7 +110,7 @@ public class PdePreprocessor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//String importRegexp = "(?:^|\\s|;)(import\\s+)(\\S+)(\\s*;)";
|
//String importRegexp = "(?:^|\\s|;)(import\\s+)(\\S+)(\\s*;)";
|
||||||
String importRegexp = "^\\s*#include\\s+[<\"](\\S+)[\">]";
|
String importRegexp = "^\\s*#include\\s*[<\"](\\S+)[\">]";
|
||||||
programImports = new ArrayList<String>();
|
programImports = new ArrayList<String>();
|
||||||
|
|
||||||
String[][] pieces = PApplet.matchAll(program, importRegexp);
|
String[][] pieces = PApplet.matchAll(program, importRegexp);
|
||||||
|
Reference in New Issue
Block a user