diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2008-04-21 04:36:22 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2008-04-21 04:36:22 -0500 |
commit | 7f85f87055108981c316af2108467f5fed2e2ab9 (patch) | |
tree | 1e4d9e9a5cdb2b99fd05ac99afb991c57bd3fd3d | |
parent | 3dcb41c293ac69a86867ceaadf69353db6c40bb5 (diff) | |
download | vim-foldtext-7f85f87055108981c316af2108467f5fed2e2ab9.tar.gz vim-foldtext-7f85f87055108981c316af2108467f5fed2e2ab9.zip |
only recognize oo stuff if it's the first argument
-rw-r--r-- | vimrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |