Hi Jason, Bram, Sorry for the silence on my part, it seems I don't have the time and resources to keep up with work on the php syntax file, so if anyone else is keen to take over this, then I am happy for them to do so.
FYI, the syntax file at http://www.vim.org/scripts/script.php?script_id=1571 is largely a rewrite of the packaged syntax file, and while it has many more features I wasn't confident enough in its backwards compatibility to have it packaged with vim. Also it is arguably too slow (too many features) to be packaged with vim. As PHP 5.3 has been out for a while now, it is probably a good time for someone else to take over and update the syntax file. regards, Peter --- On Sat, 8/1/11, JasonWoof <[email protected]> wrote: > From: JasonWoof <[email protected]> > Subject: php.vim fixed, need help getting it applied > To: "vim_dev" <[email protected]> > Received: Saturday, 8 January, 2011, 9:49 PM > 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 > -- 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
