[jruby-joni] 09/194: introduce USE_NO_INVALID_QUANTIFIER
Hideki Yamane
henrich at moszumanska.debian.org
Thu Feb 1 12:04:08 UTC 2018
This is an automated email from the git hooks/post-receive script.
henrich pushed a commit to branch debian/sid
in repository jruby-joni.
commit d0aa0ffc2cccb2820ac14b419b963fcc166da8b3
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date: Fri Dec 1 20:52:29 2017 +0100
introduce USE_NO_INVALID_QUANTIFIER
---
src/org/joni/Config.java | 1 +
src/org/joni/ast/Node.java | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/org/joni/Config.java b/src/org/joni/Config.java
index 85277ff..b186b51 100644
--- a/src/org/joni/Config.java
+++ b/src/org/joni/Config.java
@@ -24,6 +24,7 @@ import java.io.PrintStream;
public interface Config extends org.jcodings.Config {
final boolean VANILLA = false;
final int CHAR_TABLE_SIZE = 256;
+ final boolean USE_NO_INVALID_QUANTIFIER = true;
final int SCANENV_MEMNODES_SIZE = 8;
final boolean USE_NAMED_GROUP = true;
diff --git a/src/org/joni/ast/Node.java b/src/org/joni/ast/Node.java
index 5a75221..824e651 100644
--- a/src/org/joni/ast/Node.java
+++ b/src/org/joni/ast/Node.java
@@ -90,7 +90,7 @@ public abstract class Node implements NodeType {
}
public final boolean isInvalidQuantifier() {
- if (!Config.VANILLA) return false;
+ if (Config.USE_NO_INVALID_QUANTIFIER) return false;
ConsAltNode node;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby-joni.git
More information about the pkg-java-commits
mailing list