From f0245bc4897ab12f1a3108c437a8e6217303efd0 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Thu, 20 Oct 2011 14:44:36 -0400 Subject: [PATCH] support :set compatible --- php.vim | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/php.vim b/php.vim index 2c49c64..956197d 100644 --- a/php.vim +++ b/php.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: php PHP 3/4/5 " Maintainer: Jason Woofenden -" Last Change: July 29, 2011 +" Last Change: Oct 20, 2011 " URL: https://gitorious.org/jasonwoof/vim-syntax/blobs/master/php.vim " Former Maintainers: Peter Hodge " Debian VIM Maintainers @@ -110,6 +110,10 @@ if exists( "php_htmlInStrings") syn cluster phpAddStrings add=@htmlTop endif +" make sure we can use \ at the begining of the line to do a continuation +let s:cpo_save = &cpo +set cpo&vim + syn case match " Env Variables @@ -691,4 +695,8 @@ if main_syntax == 'php' unlet main_syntax endif +" put cpoptions back the way we found it +let &cpo = s:cpo_save +unlet s:cpo_save + " vim: ts=8 sts=2 sw=2 expandtab -- 1.7.10.4