Skip to content

Commit 7176ebb

Browse files
author
Pascal "Pixel" Rigaux
committed
1 parent 43e0bf2 commit 7176ebb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Perl5Parser/Prototype.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ unknown_builtin_prototypes =
5656
, ("print", "@")
5757
, ("prototype", "$")
5858
, ("readpipe", "$")
59+
, ("return", "@")
5960
, ("scalar", "$")
6061
, ("split", "@")
6162
, ("sort", "@")

test.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ ok_exprs = [
145145
, ("print(cos 1)", "print((cos 1))")
146146
, ("print sort { $a <=> $b } 1, 5, 2", "print (sort { ($a <=> $b )} ((1, 5), 2))")
147147
, ("return ($v)[$w]", "return (($v)[$w])")
148+
, ("return <F>", "return <F>")
148149
, ("foo.bar", "foo.bar")
149150
-- complex ?: calls
150151
, ("($v ? N() . '; ' . N() . ': ' . $w : N())", "($v ? ((((N() ). '; ' ). ((N() ). ': ' )). $w ): (N()))")

0 commit comments

Comments
 (0)