I've e-mailed Peter Hodge about this twice (once three months ago, and
once one month ago) and I've gotten no response, so I need someone
else to do something about getting this patch in, or connecting with
the right people. I don't know anybody here, so I don't know who/how
to nag.
Here's my message about it: (patch at the end)
It's been bugging me for ages that php.vim doesn't hilight \" in
double quotes, and I just found another bug in my code because I
again forgot that single quotes in php treat \\ and \' sequences
specially.
So I wrote a patch to fix it. As I just wrote to vim_dev, this
patch:
1) hilights \\ and \' in single quoted strings
2) hilights \" in double quoted strings
That's all. I hope you will merge this patch (or something with the
same effect) so others won't make the mistake I've made too many
times of assuming that strlen('\\') == 2.
Oh, and in case you read the crappy documentation on the syntax of
single-quoted strings, please know that \\ inside single quoted
strings always results in a single backslash, regardless of its
position in the string. There has been an update to the
documentation committed:
http://svn.php.net/viewvc/phpdoc/en/trunk/language/types/string.xml?r1=304133&r2=304132&pathrev=304133
Though (ymmv) the update hasn't made it to the live documentation
site as of this writing.
Thank you, - Jason
And the patch is posted here:
http://jasonwoof.com/downloads/hilight-rest-of-escaped-chars.patch
--
You received this message from the "vim_dev" 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