提交 e9cddc8e 编写于 作者: R Rich Felker

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.
上级 9a7fac79
......@@ -1353,6 +1353,8 @@ tre_parse(tre_parse_ctx_t *ctx)
if (ctx->cflags & REG_EXTENDED
|| ctx->re == ctx->re_start)
{
if (!(ctx->cflags & REG_EXTENDED))
STACK_PUSHX(stack, int, PARSE_CATENATION);
result = tre_ast_new_literal(ctx->mem, ASSERTION,
ASSERT_AT_BOL, -1);
if (result == NULL)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册