5b943ebb71dc6664d0e148a603e1d71ba0770367

Author: AD7six

Date: 2009-11-25 01:39:50 +0100

preventing the whitespace corrections from converting .= and != to . = and ! =

diff --git a/vendors/vim/plugins/cakephp.vim b/vendors/vim/plugins/cakephp.vim index a5f1f3c..4147e84 100644 --- a/vendors/vim/plugins/cakephp.vim +++ b/vendors/vim/plugins/cakephp.vim @@ -295,11 +295,11 @@ function FormatPhp() range " correct whitespace around comas (parameters) :silent 'y,'zs/,\(\S\)\@=/, /ge " correct whitespace around assignments/comparisons x=y becomes x = y - :silent 'y,'zs/\([^=<>& ]\)\([!<]\?==\?[=>&]\?\)\([^=<>& ]\)/\1 \2 \3/ge + :silent 'y,'zs/\([^\.!=<>& ]\)\([\.!<]\?==\?[=>&]\?\)\([^=<>& ]\)/\1 \2 \3/ge " correct whitespace around assignments/comparisons x= y becomes x = y - :silent 'y,'zs/\([^=<>& ]\)\([!<]\?==\?[=>&]\?\)/\1 \2/ge + :silent 'y,'zs/\([^\.!=<>& ]\)\([\.!<]\?==\?[=>&]\?\)/\1 \2/ge " correct whitespace around assignments/comparisons x =y becomes x = y - :silent 'y,'zs/\([!<]\?==\?[=>&]\?\)\([^=<>& ]\)/\1 \2/ge + :silent 'y,'zs/\([\.!<]\?==\?[=>&]\?\)\([^=<>& ]\)/\1 \2/ge " put a blank line before comment blocks :silent 'y,'zs/\([\{\}\/;]\)\n\zs\/\*/\r\/\*/e