be360cb6d8f98ed6895e64e841a0e8fccf527ddc
Author: AD7six
Date: 2009-11-25 23:14:47 +0100
diff --git a/vendors/vim/plugins/cakephp.vim b/vendors/vim/plugins/cakephp.vim
index 4147e84..6ca8841 100644
--- a/vendors/vim/plugins/cakephp.vim
+++ b/vendors/vim/plugins/cakephp.vim
@@ -295,9 +295,9 @@ 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
