This is a regression of PIG-3204.
Here is the comment from a Pig user-
Change script parsing to parse entire script instead of line by line
Uploading a patch.
Committed to trunk. Thank you Daniel for the review!
I committed this patch to 0.13 branch too.