[jruby-joni] 56/194: add perl bits
Hideki Yamane
henrich at moszumanska.debian.org
Thu Feb 1 12:04:26 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 1c9c689425d7bacf8f536d4767aad8891a305cb7
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date: Sat Dec 30 01:44:29 2017 +0100
add perl bits
---
src/org/joni/Parser.java | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/org/joni/Parser.java b/src/org/joni/Parser.java
index 3a92fac..4c52be8 100644
--- a/src/org/joni/Parser.java
+++ b/src/org/joni/Parser.java
@@ -567,6 +567,19 @@ class Parser extends Lexer {
}
break;
+ case '^': /* loads default options */
+ if (left() && syntax.op2OptionPerl()) {
+ /* d-imsx */
+ option = bsOnOff(option, Option.ASCII_RANGE, true);
+ option = bsOnOff(option, Option.IGNORECASE, true);
+ option = bsOnOff(option, Option.SINGLELINE, false);
+ option = bsOnOff(option, Option.MULTILINE, true);
+ option = bsOnOff(option, Option.EXTEND, true);
+ fetch();
+ } else {
+ newSyntaxException(ERR_UNDEFINED_GROUP_OPTION);
+ }
+
// case 'p': #ifdef USE_POSIXLINE_OPTION
case '-':
case 'i':
--
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