Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32844 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78826 invoked by uid 1010); 18 Oct 2007 06:25:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78811 invoked from network); 18 Oct 2007 06:25:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Oct 2007 06:25:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.178.251 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 64.233.178.251 hs-out-0708.google.com Linux 2.4/2.6 Received: from [64.233.178.251] ([64.233.178.251:26350] helo=hs-out-2021.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/F6-19466-57CF6174 for ; Thu, 18 Oct 2007 02:25:58 -0400 Received: by hs-out-2021.google.com with SMTP id l65so60427hsc for ; Wed, 17 Oct 2007 23:25:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=g05ZV1fqygOs14bs1kXioE/O23g/Knyv2I9WhTvQ7To=; b=t3Uo4JPJp2UY+JYBXaAJBubPkGQKBC1lojd0AJCXWvNexnK+sE2HPpxZjulN9Afw80L6hxDe/yz/dDhbQ3AxGtKvQEWI+XXfPF8FY0QhtWO9X4zjLyvauvvMiFJGp0oX0Dw2Y8TtronalMnhY9qXReWaEr+tQf3u7+qUxhtFfSo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DOx5EF8DD338R03ZxazVFY2pSQ/QpSxUOsXDkz1HFkbCQ304qXSgCuHwgzHF80CDpTuoM4UoN/cu07D/wXv9h06K9Qz+i/cu7ZMfZaNUURZPNyeyEcoqfeGBjgzog4V9PQkZQbPMFi0iLmiFeS4BFtRqIkAZ6xbpMKAyfYXHASU= Received: by 10.90.113.18 with SMTP id l18mr372657agc.1192688755025; Wed, 17 Oct 2007 23:25:55 -0700 (PDT) Received: by 10.90.91.16 with HTTP; Wed, 17 Oct 2007 23:25:54 -0700 (PDT) Message-ID: Date: Thu, 18 Oct 2007 10:25:54 +0400 To: "Andi Gutmans" Cc: "Stanislav Malyshev" , "Sebastian Nohn" , "=?UTF-8?Q?Johannes_Schl=C3=BCter?=" , "Sebastian Bergmann" , internals@lists.php.net In-Reply-To: <698DE66518E7CA45812BD18E807866CECC6469@us-ex1.zend.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1191237850.2903.19.camel@johannes.nop> <698DE66518E7CA45812BD18E807866CEB9528E@us-ex1.zend.net> <4701E210.70109@nohn.net> <698DE66518E7CA45812BD18E807866CEB954E9@us-ex1.zend.net> <8c631e020710171158n25b5efedt4eccf7d816331407@mail.gmail.com> <47166930.7000706@zend.com> <698DE66518E7CA45812BD18E807866CECC6469@us-ex1.zend.net> Subject: Re: [PHP-DEV] T_IMPORT vs. T_USE From: indeyets@gmail.com ("Alexey Zakhlestin") On 10/18/07, Andi Gutmans wrote: > Main problem I have right now after digging deeper is that any such "fix" in the parser will mean that tokenizers and syntax highlighters will not treat keywords like "import" correctly. Fixing this would require them to do parsing which in many cases you don't want to do. There are a lot of utilities and tools which depend on such behavior. In my opinion, this is a problem with those syntax highlighters. This problem can be nicely solved and textmate is an example of that. It still relies on regular expressions, but it is context-aware I am definitely on "less keywords is better" side -- Alexey Zakhlestin http://blog.milkfarmsoft.com/