Preprocessor now accepts whitespace after height

Example: size(100,100 , P2D);
This commit is contained in:
Jakub Valtar
2014-11-03 23:02:57 +01:00
parent 86fd2655f1
commit 7f9db884bf

View File

@@ -167,7 +167,7 @@ public class PdePreprocessor {
* and pasting from the reference.
*/
public static final String SIZE_REGEX =
"(?:^|\\s|;)size\\s*\\(\\s*([^\\s,]+)\\s*,\\s*([^\\s,\\)]+),?\\s*([^\\)]*)\\s*\\)\\s*\\;";
"(?:^|\\s|;)size\\s*\\(\\s*([^\\s,]+)\\s*,\\s*([^\\s,\\)]+)\\s*,?\\s*([^\\)]*)\\s*\\)\\s*\\;";
//"(?:^|\\s|;)size\\s*\\(\\s*(\\S+)\\s*,\\s*([^\\s,\\)]+),?\\s*([^\\)]*)\\s*\\)\\s*\\;";