Fix a typo in JIT and add a test.
This commit is contained in:
parent
0554b42fea
commit
6b6630fc34
@ -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;
|
||||
}
|
||||
|
||||
|
3
testdata/testinput2
vendored
3
testdata/testinput2
vendored
@ -1099,6 +1099,9 @@
|
||||
|
||||
/(?C)a|b/I
|
||||
|
||||
/a|(b)(?C)/I
|
||||
b
|
||||
|
||||
/x(ab|(bc|(de|(?R))))/I
|
||||
xab
|
||||
xbc
|
||||
|
10
testdata/testoutput2
vendored
10
testdata/testoutput2
vendored
@ -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
Block a user