[jruby-joni] 157/223: Move the JavaScript syntax from DynJS to Joni
Hideki Yamane
henrich at moszumanska.debian.org
Mon Nov 16 11:22:04 UTC 2015
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 72fdd2eb9ed8430cfa2e75c0b69a51476c693b97
Author: Ben Browning <bbrownin at redhat.com>
Date: Thu Sep 5 21:13:22 2013 -0400
Move the JavaScript syntax from DynJS to Joni
---
src/org/joni/Syntax.java | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/src/org/joni/Syntax.java b/src/org/joni/Syntax.java
index 89ead78..2827cd4 100644
--- a/src/org/joni/Syntax.java
+++ b/src/org/joni/Syntax.java
@@ -611,4 +611,39 @@ public final class Syntax implements SyntaxProperties{
INEFFECTIVE_META_CHAR /* anychar anytime */
)
);
+
+ public static final Syntax JavaScript = new Syntax(
+ (( GNU_REGEX_OP | OP_QMARK_NON_GREEDY |
+ OP_ESC_OCTAL3 | OP_ESC_X_HEX2 |
+ OP_ESC_CONTROL_CHARS | OP_ESC_C_CONTROL |
+ OP_DECIMAL_BACKREF | OP_ESC_D_DIGIT |
+ OP_ESC_S_WHITE_SPACE | OP_ESC_W_WORD )
+ & ~OP_ESC_LTGT_WORD_BEGIN_END ),
+
+ ( OP2_ESC_CAPITAL_Q_QUOTE |
+ OP2_QMARK_GROUP_EFFECT | OP2_OPTION_PERL |
+ OP2_ESC_P_BRACE_CHAR_PROPERTY |
+ OP2_ESC_P_BRACE_CIRCUMFLEX_NOT |
+ OP2_ESC_U_HEX4 | OP2_ESC_V_VTAB ),
+
+ ( CONTEXT_INDEP_ANCHORS |
+ CONTEXT_INDEP_REPEAT_OPS |
+ CONTEXT_INVALID_REPEAT_OPS |
+ ALLOW_INVALID_INTERVAL |
+ BACKSLASH_ESCAPE_IN_CC |
+ ALLOW_DOUBLE_RANGE_OP_IN_CC |
+ DIFFERENT_LEN_ALT_LOOK_BEHIND |
+ IGNORE_BACKREF_PREC_READ_NOT ),
+
+ Option.NONE,
+
+ new MetaCharTable(
+ '\\', /* esc */
+ INEFFECTIVE_META_CHAR, /* anychar '.' */
+ INEFFECTIVE_META_CHAR, /* anytime '*' */
+ INEFFECTIVE_META_CHAR, /* zero or one time '?' */
+ INEFFECTIVE_META_CHAR, /* one or more time '+' */
+ INEFFECTIVE_META_CHAR /* anychar anytime */
+ )
+ );
}
--
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