[jruby-joni] 154/194: nextSetup cleanup
Hideki Yamane
henrich at moszumanska.debian.org
Thu Feb 1 12:04:36 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 5c76af599e123dcddfbc6e543266253250eb7015
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date: Thu Jan 11 19:41:20 2018 +0100
nextSetup cleanup
---
src/org/joni/Analyser.java | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/org/joni/Analyser.java b/src/org/joni/Analyser.java
index 01d641f..f2485b6 100644
--- a/src/org/joni/Analyser.java
+++ b/src/org/joni/Analyser.java
@@ -1386,7 +1386,6 @@ final class Analyser extends Parser {
}
private void nextSetup(Node node, Node nextNode) {
- // retry:
retry: while(true) {
int type = node.getType();
@@ -1400,18 +1399,17 @@ final class Analyser extends Parser {
qn.nextHeadExact = n;
}
} // USE_QTFR_PEEK_NEXT
- /* automatic posseivation a*b ==> (?>a*)b */
+
+ /* automatic possessification a*b ==> (?>a*)b */
if (qn.lower <= 1) {
if (qn.target.isSimple()) {
Node x = getHeadValueNode(qn.target, false);
if (x != null) {
Node y = getHeadValueNode(nextNode, false);
if (y != null && isNotIncluded(x, y)) {
- EncloseNode en = new EncloseNode(EncloseType.STOP_BACKTRACK); //onig_node_new_enclose
+ EncloseNode en = new EncloseNode(EncloseType.STOP_BACKTRACK);
en.setStopBtSimpleRepeat();
- //en.setTarget(qn.target); // optimize it ??
node.swap(en);
-
en.setTarget(node);
}
}
@@ -1422,7 +1420,6 @@ final class Analyser extends Parser {
EncloseNode en = (EncloseNode)node;
if (en.isMemory()) {
node = en.target;
- // !goto retry;!
continue retry;
}
}
--
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