Re: T_IMPORT vs. T_USE

From: Date: Thu, 18 Oct 2007 06:25:54 +0000
Subject: Re: T_IMPORT vs. T_USE
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-32844@lists.php.net to get a copy of this message
On 10/18/07, Andi Gutmans <andi@zend.com> 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/

« previous php.internals (#32844) next »