Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[perl #128307] Fix ‘foo ? require : bar’
The lexer’s bareword-parser that kicks in after it sees ‘require’ was getting confused by the single colon, since it assumed that if the thing that followed began with a letter or colon it must be a package or module name. Hence, require with : after it was parsed as require "", but with a ‘bareword’ "". The lexer should be checking for two colons, not just one.
- Loading branch information
Father Chrysostomos
committed
Jun 3, 2016
1 parent
198aaf3
commit e7127e2
Showing
2 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters