diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2008-04-21 02:16:17 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2008-04-21 02:16:17 -0500 |
commit | 53d79e72d69c43f3031dbce9892fc4eb4eafad5f (patch) | |
tree | b64bd086e0824beaad4db26f2fe0eca4b1f49c47 | |
parent | dcdb904d97d328b0d71f03e6e0cc645956cf57fa (diff) | |
download | vim-foldtext-53d79e72d69c43f3031dbce9892fc4eb4eafad5f.tar.gz vim-foldtext-53d79e72d69c43f3031dbce9892fc4eb4eafad5f.zip |
handle variable argument functions that rename @_
-rw-r--r-- | vimrc | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -271,6 +271,13 @@ function Perl_foldtext() break endif + " handle 'my @args = @_;' type lines + let array_line = matchlist(next_line, 'my\s*\(@\w\+\)\s*=\s*@_;') + if !empty(array_line) + let params += [array_line[1]] + break + endif + " handle 'my %args = @_;' type lines let hash_line = matchlist(next_line, 'my\s*%\w\+\s*=\s*@_;') if !empty(hash_line) |