Perl-Critic / PPI

53 stars 44 forks source link

__DATA__ causes "incomplete" documents #185

Open jhi opened 8 years ago

jhi commented 8 years ago

The below three-line input parses successfully but complete() returns false. Note that if DATA is replaced by END complete() returns success. The DATA may contain actual data, but that doesn't affect the completeness.

package Foo; 1; DATA