From 53d79e72d69c43f3031dbce9892fc4eb4eafad5f Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Mon, 21 Apr 2008 02:16:17 -0500 Subject: handle variable argument functions that rename @_ --- vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vimrc b/vimrc index 6cee219..ab00b78 100644 --- a/vimrc +++ b/vimrc @@ -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) -- cgit v1.2.3-54-g00ecf