Fix a typo in JIT and add a test.
This commit is contained in:
parent
1e0f88bba4
commit
940627c83a
|
@ -8314,7 +8314,7 @@ add_jump(compiler, &backtrack->topbacktracks, JUMP(SLJIT_SIG_GREATER32));
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -1099,6 +1099,9 @@
|
|||
|
||||
/(?C)a|b/I
|
||||
|
||||
/a|(b)(?C)/I
|
||||
b
|
||||
|
||||
/x(ab|(bc|(de|(?R))))/I
|
||||
xab
|
||||
xbc
|
||||
|
|
|
@ -3880,6 +3880,16 @@ Capturing subpattern count = 0
|
|||
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'
|
||||
|
|
Loading…
Reference in New Issue