Revision: 907
http://www.exim.org/viewvc/pcre2?view=rev&revision=907
Author: zherczeg
Date: 2018-01-10 09:28:03 +0000 (Wed, 10 Jan 2018)
Log Message:
-----------
Fix a typo in JIT and add a test.
Modified Paths:
--------------
code/trunk/src/pcre2_jit_compile.c
code/trunk/testdata/testinput2
code/trunk/testdata/testoutput2
Modified: code/trunk/src/pcre2_jit_compile.c
===================================================================
--- code/trunk/src/pcre2_jit_compile.c 2018-01-09 08:38:32 UTC (rev 906)
+++ code/trunk/src/pcre2_jit_compile.c 2018-01-10 09:28:03 UTC (rev 907)
@@ -8314,7 +8314,7 @@
if (common->abort_label == NULL)
add_jump(compiler, &common->abort, JUMP(SLJIT_NOT_EQUAL32) /* SIG_LESS */);
else
- JUMPTO(SLJIT_NOT_EQUAL /* SIG_LESS */, common->abort_label);
+ JUMPTO(SLJIT_NOT_EQUAL32 /* SIG_LESS */, common->abort_label);
return cc + callout_length;
}
Modified: code/trunk/testdata/testinput2
===================================================================
--- code/trunk/testdata/testinput2 2018-01-09 08:38:32 UTC (rev 906)
+++ code/trunk/testdata/testinput2 2018-01-10 09:28:03 UTC (rev 907)
@@ -1099,6 +1099,9 @@
/(?C)a|b/I
+/a|(b)(?C)/I
+ b
+
/x(ab|(bc|(de|(?R))))/I
xab
xbc
Modified: code/trunk/testdata/testoutput2
===================================================================
--- code/trunk/testdata/testoutput2 2018-01-09 08:38:32 UTC (rev 906)
+++ code/trunk/testdata/testoutput2 2018-01-10 09:28:03 UTC (rev 907)
@@ -3880,6 +3880,16 @@
Starting code units: a b
Subject length lower bound = 1
+/a|(b)(?C)/I
+Capturing subpattern count = 1
+Starting code units: a b
+Subject length lower bound = 1
+ b
+--->b
+ 0 ^^ End of pattern
+ 0: b
+ 1: b
+
/x(ab|(bc|(de|(?R))))/I
Capturing subpattern count = 3
First code unit = 'x'