Subject: Re: bug#76731: C-style comment regexp example in (info "(elisp)Rx Notation") is not correct

From: Stefan Monnier <[email-masked]>
Date: Mon, 19 May 2025 18:42:42 -0400

> I see no fundamental reason why they should be, as the C comment syntax can
> be parsed efficiently by a tiny state machine.

Our regexp engine lacks to "switch" kind of operation needed for that.
After a series of `*` we have two mutually exclusive paths, depending on whether
the next char is a `/` or something else, but we don't have a "look
ahead" so we have to push a backtrack-point before we try to match the
next char with `/`.

        Stefan