Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49015 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36177 invoked from network); 8 Jul 2010 20:49:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jul 2010 20:49:29 -0000 X-Host-Fingerprint: 95.31.13.88 xdmitri2.static.corbina.ru Received: from [95.31.13.88] ([95.31.13.88:18360] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 62/35-09263-7D9363C4 for ; Thu, 08 Jul 2010 16:49:28 -0400 Message-ID: <62.35.09263.7D9363C4@pb1.pair.com> To: internals@lists.php.net References: <1430e929de312057f8a7788560e7c92f.squirrel@www.l-i-e.com> <4C34AA60.7070707@ingres.com> <41062215-1091-47AA-B431-B33F1823DE2A@macvicar.net> <22.A3.09263.A2C263C4@pb1.pair.com> <19DF4FB6-92CA-4A4C-8703-7042FE5582C5@macvicar.net> Date: Fri, 9 Jul 2010 00:49:19 +0400 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-Posted-By: 95.31.13.88 Subject: Re: [PHP-DEV] Single-line comment problem From: dmda@yandex.ru ("jvlad") >"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