File tree Expand file tree Collapse file tree
src/main/java/org/jamplate/parser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public class ScopeParser implements PollParser<Scope> {
4848 *
4949 * @since 0.0.3 ~2020.09.21
5050 */
51- protected static final Pattern COMMON_PARAMETERS_INTEGER = Pattern .compile ("^\\ s*(?<LOGIC>\\ d*)\\ s*$" );
51+ protected static final Pattern COMMON_PARAMETERS_INTEGER = Pattern .compile ("^\\ s*(?<LOGIC>[-]? \\ d*)\\ s*$" );
5252 /**
5353 * Common pattern to extract single logic parameter.
5454 *
@@ -79,7 +79,7 @@ public class ScopeParser implements PollParser<Scope> {
7979 *
8080 * @since 0.0.1 ~2020.09.20
8181 */
82- protected static final Pattern PATTERN_COMMANDS = Pattern .compile ("\\ n? (?:(?<!\\ \\ )#)(?:(?:[^#\\ n])|(?:(?<=\\ \\ )[#\\ n]))*(?:(?:(?<!\\ \\ )[# \\ n] )|$)" );
82+ protected static final Pattern PATTERN_COMMANDS = Pattern .compile ("\\ n* \\ t* (?:(?<!\\ \\ )#)(?:(?:[^#\\ n])|(?:(?<=\\ \\ )[#\\ n]))*(?:(?:(?<!\\ \\ )(#|( \\ n*)) )|$)" );
8383
8484 /**
8585 * A pattern to be used to detected {@link Define} commands.
You can’t perform that action at this time.
0 commit comments