A bug in scan.l - Mailing list pgsql-hackers

From Gokulakannan Somasundaram
Subject A bug in scan.l
Date
Msg-id 9362e74e0909011905l3a405ad0la2b1449be5852a0f@mail.gmail.com
Whole thread Raw
Responses Re: A bug in scan.l
List pgsql-hackers
There is a rule like this in scan.l<br /><br />uescapefail       
("-"|[uU][eE][sS][cC][aA][pP][eE]{whitespace}*"-"|[uU][eE][sS][cC][aA][pP][eE]{whitespace}*{quote}[^']|[uU][eE][sS][cC][aA][pP][eE]{whitespace}*{quote}|[uU][eE][sS][cC][aA][pP][eE]{whitespace}*|[uU][eE][sS][cC][aA][pP]|[uU][eE][sS][cC][aA]|[uU][eE][sS][cC]|[uU][eE][sS]|[uU][eE]|[uU])<br
/><br/><br />I think this should be corrected to <br /><br /><br />uescapefail       
("-"|[uU][eE][sS][cC][aA][pP][eE]{space}*"-"|[uU][eE][sS][cC][aA][pP][eE]{space}*{quote}[^']|[uU][eE][sS][cC][aA][pP][eE]{space}*{quote}|[uU][eE][sS][cC][aA][pP][eE]{space}*|[uU][eE][sS][cC][aA][pP]|[uU][eE][sS][cC][aA]|[uU][eE][sS][cC]|[uU][eE][sS]|[uU][eE]|[uU])<br
/><br/><br />I have replaced whitespace with space. This has to be done because whitespace allows comments. This would
causeconflict between some of the alternatives. I found this, while trying to make this rule work with LL(1). Just
thought,it might be useful.<br /><br />Thanks,<br />Gokul.<br /> 

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Linux LSB init script
Next
From: Alvaro Herrera
Date:
Subject: Re: remove flatfiles.c