This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] ada: Accept escaped '(' in a regular expression '()' group


On 25/07, Arnaud Charlet wrote:

| There is indeed a bug in GNAT.Regexp, and your fix is good.
| However, it seems a bit inefficient because it requires an array the
| size of the string, which I think is unnecessary.
| We only need to check whether the last opening parenthesis was the
| previous character. Nested parenthesis are automatically handled (if
| the one inside is not empty, then the outer one cannot be empty either)
| 
| I propose the following patch instead:

Looks fine with me. Arnaud, will you take care of it?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]