From: K.Kosako Date: Tue, 11 Jul 2017 05:12:05 +0000 (+0900) Subject: rename ONIG_SYN_OP2_ESC_CAPITAL_N_NO_NEWLINE to ONIG_SYN_OP2_ESC_CAPITAL_N_O_SUPER_DOT X-Git-Tag: v6.5.0^2~118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14994571a895c188f46aeb179399f795276ff24d;p=onig rename ONIG_SYN_OP2_ESC_CAPITAL_N_NO_NEWLINE to ONIG_SYN_OP2_ESC_CAPITAL_N_O_SUPER_DOT --- diff --git a/src/oniguruma.h b/src/oniguruma.h index f2507df..e93928f 100644 --- a/src/oniguruma.h +++ b/src/oniguruma.h @@ -499,7 +499,7 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax; #define ONIG_SYN_OP2_QMARK_LPAREN_IF_ELSE (1U<<21) /* (?(n)) (?(...)...|...) */ #define ONIG_SYN_OP2_ESC_CAPITAL_K_KEEP (1U<<22) /* \K */ #define ONIG_SYN_OP2_ESC_CAPITAL_R_GENERAL_NEWLINE (1U<<23) /* \R \r\n else [\x0a-\x0d] */ -#define ONIG_SYN_OP2_ESC_CAPITAL_N_NO_NEWLINE (1U<<24) /* \N [^\n] */ +#define ONIG_SYN_OP2_ESC_CAPITAL_N_O_SUPER_DOT (1U<<24) /* \N (?-m:.), \O (?m:.) */ /* syntax (behavior) */ #define ONIG_SYN_CONTEXT_INDEP_ANCHORS (1U<<31) /* not implemented */ diff --git a/src/regparse.c b/src/regparse.c index a25292b..f8619d9 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -50,7 +50,7 @@ OnigSyntaxType OnigSyntaxRuby = { ONIG_SYN_OP2_QMARK_LT_NAMED_GROUP | ONIG_SYN_OP2_ESC_K_NAMED_BACKREF | ONIG_SYN_OP2_QMARK_LPAREN_IF_ELSE | ONIG_SYN_OP2_ESC_CAPITAL_R_GENERAL_NEWLINE | - ONIG_SYN_OP2_ESC_CAPITAL_N_NO_NEWLINE | + ONIG_SYN_OP2_ESC_CAPITAL_N_O_SUPER_DOT | ONIG_SYN_OP2_ESC_CAPITAL_K_KEEP | ONIG_SYN_OP2_ESC_G_SUBEXP_CALL | ONIG_SYN_OP2_ESC_P_BRACE_CHAR_PROPERTY | @@ -3592,7 +3592,7 @@ fetch_token(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env) break; case 'N': - if (! IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_CAPITAL_N_NO_NEWLINE)) break; + if (! IS_SYNTAX_OP2(syn, ONIG_SYN_OP2_ESC_CAPITAL_N_O_SUPER_DOT)) break; tok->type = TK_NO_NEWLINE; break; diff --git a/src/regsyntax.c b/src/regsyntax.c index d05f97d..b01611d 100644 --- a/src/regsyntax.c +++ b/src/regsyntax.c @@ -179,7 +179,7 @@ OnigSyntaxType OnigSyntaxPerl = { ONIG_SYN_OP2_ESC_P_BRACE_CIRCUMFLEX_NOT | ONIG_SYN_OP2_ESC_CAPITAL_K_KEEP | ONIG_SYN_OP2_ESC_CAPITAL_R_GENERAL_NEWLINE | - ONIG_SYN_OP2_ESC_CAPITAL_N_NO_NEWLINE ) + ONIG_SYN_OP2_ESC_CAPITAL_N_O_SUPER_DOT ) , SYN_GNU_REGEX_BV , ONIG_OPTION_SINGLELINE , @@ -211,7 +211,7 @@ OnigSyntaxType OnigSyntaxPerl_NG = { ONIG_SYN_OP2_ESC_G_SUBEXP_CALL | ONIG_SYN_OP2_ESC_CAPITAL_K_KEEP | ONIG_SYN_OP2_ESC_CAPITAL_R_GENERAL_NEWLINE | - ONIG_SYN_OP2_ESC_CAPITAL_N_NO_NEWLINE ) + ONIG_SYN_OP2_ESC_CAPITAL_N_O_SUPER_DOT ) , ( SYN_GNU_REGEX_BV | ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP | ONIG_SYN_ALLOW_MULTIPLEX_DEFINITION_NAME )