mirror of
https://github.com/fluencelabs/musl
synced 2025-05-06 12:32:13 +00:00
another BRE fix: in ^*, * is literal
i don't understand why this has to be conditional on being in BRE mode, but enabling this code unconditionally breaks a huge number of ERE test cases.
This commit is contained in:
parent
9a7fac7934
commit
e9cddc8e32
@ -1353,6 +1353,8 @@ tre_parse(tre_parse_ctx_t *ctx)
|
|||||||
if (ctx->cflags & REG_EXTENDED
|
if (ctx->cflags & REG_EXTENDED
|
||||||
|| ctx->re == ctx->re_start)
|
|| ctx->re == ctx->re_start)
|
||||||
{
|
{
|
||||||
|
if (!(ctx->cflags & REG_EXTENDED))
|
||||||
|
STACK_PUSHX(stack, int, PARSE_CATENATION);
|
||||||
result = tre_ast_new_literal(ctx->mem, ASSERTION,
|
result = tre_ast_new_literal(ctx->mem, ASSERTION,
|
||||||
ASSERT_AT_BOL, -1);
|
ASSERT_AT_BOL, -1);
|
||||||
if (result == NULL)
|
if (result == NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user