Re: Single-line comment problem
| From: | jvlad | Date: | Thu, 08 Jul 2010 20:49:19 +0000 |
| Subject: | Re: Single-line comment problem | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49015@lists.php.net to get a copy of this message | ||
>"Scott MacVicar" wrote:
>Yeah because /* */ has a clear end where // and # doesn't.
>
>- S
Shouldn't the end of the line be always considered as a true end of the
one-line comment?
In other words, I think it always has a clear end too.
Similarly, lexer always regognizes the strings - their start and the end so
it could ignore the tags in them too.
Seems the only problem is BC that shouln't be broken. At least not before
v6.
-j