summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-04-21 04:36:22 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-04-21 04:36:22 -0500
commit7f85f87055108981c316af2108467f5fed2e2ab9 (patch)
tree1e4d9e9a5cdb2b99fd05ac99afb991c57bd3fd3d
parent3dcb41c293ac69a86867ceaadf69353db6c40bb5 (diff)
downloadvim-foldtext-7f85f87055108981c316af2108467f5fed2e2ab9.tar.gz
vim-foldtext-7f85f87055108981c316af2108467f5fed2e2ab9.zip
only recognize oo stuff if it's the first argument
-rw-r--r--vimrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vimrc b/vimrc
index 528aa5c..d58cef0 100644
--- a/vimrc
+++ b/vimrc
@@ -253,12 +253,12 @@ function Perl_foldtext()
let shift_line = matchlist(next_line,
\ 'my\s*\(' . var . '\)\s*=\s*shift\%(\s*||\s*\(.\{-}\)\)\?;')
if !empty(shift_line)
- if shift_line[1] == '$self'
+ if shift_line[1] == '$self' && empty(params)
if sub_type == 'sub'
let sub_type = ''
endif
let sub_type .= ' method'
- elseif shift_line[1] == '$class'
+ elseif shift_line[1] == '$class' && empty(params)
if sub_type == 'sub'
let sub_type = ''
endif