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
I committed this patch to 0.13 branch too.
Committed to trunk. Thank you Daniel for the review!
Uploading a patch.