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

From Gokulakannan Somasundaram
Subject Re: A bug in scan.l
Date
Msg-id 9362e74e0909011910x677020beh90a77f3a36abd1bd@mail.gmail.com
Whole thread Raw
List pgsql-hackers
The previous change should follow with this.<br /><br />uescape           
[uU][eE][sS][cC][aA][pP][eE]{space}*{quote}[^']{quote}<br/><br />Thanks,<br />Gokul.<br /><br /><div
class="gmail_quote">OnWed, Sep 2, 2009 at 7:35 AM, Gokulakannan Somasundaram <span dir="ltr"><<a
href="mailto:gokul007@gmail.com">gokul007@gmail.com</a>></span>wrote:<br /><blockquote class="gmail_quote"
style="border-left:1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">There is a rule like
thisin 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 /></blockquote></div><br /> 

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Linux LSB init script
Next
From: Itagaki Takahiro
Date:
Subject: make installcheck is broken in HEAD on mingw