Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix parsing of edge case involving inline HTML
The included test files can be executed. They will always print the inline HTML, indicating that PHP is doing the equivalent of inserting semicolons. Fixes #246 Also, ignore temporary files created by vim
- Loading branch information
1 parent
f3fcb1f
commit d3e28a7
Showing
7 changed files
with
505 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
vendor/ | ||
composer.lock | ||
tests/output | ||
*.ast | ||
*.ast | ||
.*.swp | ||
.*.swo |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
while (false)?>after a while<?php | ||
|
||
for (;false;)?> for false<?php | ||
|
||
foreach ([] as $elem)?> and after empty foreach<?php | ||
|
||
if (0) if (0)?> and after two ifs<?php |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
Oops, something went wrong.