Closed JohelEGP closed 5 years ago
Should be fixed now.
Thank you for reporting the issue.
Thank you.
Seems like it's not working: https://godbolt.org/z/CQEJMI
I removed the special case allowing [-] and [-something], currently the LL1 grammar is designed in a way which doesn't allow to fixing this, to avoid further confusion, this is no longer supported, maybe in future with a big refactoring of the grammar or parser I will revisit this.
I tried it, but unsuccessfully.
According to http://www.pcre.org/current/doc/html/pcre2pattern.html#SEC9, between
[
and]
:^
for it to be considered literally if its not after the[
, where it has a special meaning.-
for it to considered literally even if it's in a place where it unambiguously can't be used to define a range.See example: https://godbolt.org/z/8v6cu7. It seems that you also need to escape
|
, even though it has no special meaning anywhere between square brackets.