Attached is a patch for 0.97 that:
* adds all constants in PHP 4.0.6 w/extensions and some
from PEAR (around a thousand constants total)
* adds "foreach" and "endforeach" keywords (the
changelog in the header says they were added, but they
were not in the php-mode-097.el I downloaded)
* adds "declare" "include_once", "require_once" and
"as" (part of foreach) keywords
* highlights "function &foo..." correctly
* highlights "class::method..." correctly
* doesn't highlight C++ templates ;-)
* sets indent-tabs-mode to nil only if the path
contains "pear" or "PEAR"
I can't really feel any speed difference with the extra
constants, but they kinda dominate the file now. :-)
Thanks for php-mode,
- Stig
php-mode 0.97 patch
Logged In: YES
user_id=137402
Thanks for the patch. I'm making it version 0.9.8.