summaryrefslogtreecommitdiff
path: root/server/src/parser.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/parser.ts')
-rw-r--r--server/src/parser.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/parser.ts b/server/src/parser.ts
index b877d15..252b342 100644
--- a/server/src/parser.ts
+++ b/server/src/parser.ts
@@ -244,7 +244,7 @@ function look_ahead_signatures(state: ParserState): string[] {
}
}
let match;
- if ((match = stmt.match(/(?:^|{)\s*my\s+(\(\s*[\$@%]\w+\s*(?:,\s*[\$@%]\w+\s*)*\))\s*=\s*\@_/)) || // my ($foo, $bar) = @_
+ if ((match = stmt.match(/(?:^|{)\s*my\s*(\(\s*[\$@%]\w+\s*(?:,\s*[\$@%]\w+\s*)*\))\s*=\s*\@_/)) || // my ($foo, $bar) = @_
(match = stmt.match(/(?:^|{)\s*my\s+(\s*[\$@%]\w+\s*)=\s*shift\b/)) || // my $foo = shift
(match = stmt.match(/(?:^|{)\s*my\s*(\(\s*[\$@%]\w+\s*\))\s*=\s*shift\b/)) // my ($foo) = shift
) {