#2 0.97: all constants, highlight fixes

closed-accepted
nobody
None
5
2001-05-29
2001-05-24
No

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

Discussion

  • Turadg Aleahmad

    Turadg Aleahmad - 2001-05-29

    Logged In: YES
    user_id=137402

    Thanks for the patch. I'm making it version 0.9.8.

     
  • Turadg Aleahmad

    Turadg Aleahmad - 2001-05-29
    • status: open --> closed-accepted
     

Log in to post a comment.