From 02a34108644a76c8b9e91f0b770d72231bc0ae32 Mon Sep 17 00:00:00 2001 From: Stan Angeloff Date: Mon, 16 Apr 2012 16:11:40 +0300 Subject: [PATCH] Silent call to unlet! + spellcheck updates. Conflicts: syntax/php.vim These were borrowed from paulyg/Vim-PHP-Stuff. --- syntax/php.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/syntax/php.vim b/syntax/php.vim index bf40a5b..d59b90e 100644 --- a/syntax/php.vim +++ b/syntax/php.vim @@ -60,7 +60,9 @@ if !exists("main_syntax") endif runtime! syntax/html.vim -unlet b:current_syntax +unlet! b:current_syntax +" HTML syntax file turns on spelling for all top level words, we attempt to turn off +syntax spell default " Set sync method if none declared if !exists("php_sync_method") @@ -76,7 +78,7 @@ syn cluster htmlPreproc add=phpRegion syn include @sqlTop syntax/sql.vim syn sync clear -unlet b:current_syntax +unlet! b:current_syntax syn cluster sqlTop remove=sqlString,sqlComment if exists("php_sql_query") syn cluster phpAddStrings contains=@sqlTop @@ -88,7 +90,7 @@ endif syn case match -" Superblobals +" Superglobals syn keyword phpSuperglobals GLOBALS _GET _POST _REQUEST _FILES _COOKIE _SERVER _SESSION _ENV HTTP_RAW_POST_DATA php_errormsg http_response_header argc argv contained " Magic Constants