Friday, May 4, 2012

Re: No ~/.vim/after/syntax/php.vim

On Fri, May 4, 2012 at 8:40 PM, sc <toothpik@swbell.net> wrote:
> <rapacious snip>
>
> in your original post you said
>
>> I am trying to get the "=+" operator highlighted as an error in PHP
>
> is it possible you have similarly fat-fingered the operator in
> your script?
>

Nice catch! I just double checked, no fat fingers in either of the two
scripts that I am trying on the assumption that there may be a problem
in the script:

Version 1:
scriptencoding utf-8
setlocal nolist
syn match phpPlusEq '+='
hi link phpPlusEq Error

Version 2:
scriptencoding utf-8
setlocal nolist
syn keyword phpPlusEq +=
highlight phpPlusEq term=reverse ctermfg=black ctermbg=yellow
guifg=black guibg=yellow


--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: