[SATLUG] vim syntax highlighting and php classes

N. David Guarneri dguarneri at satx.rr.com
Wed Aug 4 10:35:43 CDT 2004


I am using php syntax highlighting in vim.  It works real well, untill I
introduce a class:

      6 $alphanumeric  = &New AlphaNumeric;
      7 $first_name = $_POST['first_name'];
      8 $first_name_check = $alphanumeric->validate_field($field);

After the "->" everything turns to black.  I type "h: coloring" in vim,
where I got the clue to look at "/usr/share/vim/vim62/syntax/php.vim".

I tried to modify it so that it would ignore "->", but was not
successful.  Would someone please show me what to put in php.vim to
either ignore or highlight "->"?  Thank you very much..
 
-- 
N. David Guarneri
"I never met a character I didn't like." Dougherty & Robbins, _Sed and Awk_


More information about the Satlug mailing list