Merge pull request '如果else分支只有注释,那就不渲染这个分支' (#11) from empty-else into master
Reviewed-on: #11pull/14/head
commit
14f3a5a311
2 changed files with 30 additions and 1 deletions
@ -0,0 +1,19 @@ |
|||||||
|
--TEST-- |
||||||
|
empty else with comments |
||||||
|
--FILE-- |
||||||
|
<?php |
||||||
|
function main() { |
||||||
|
if (true) { |
||||||
|
echo 'success'; |
||||||
|
} else { |
||||||
|
// 1 |
||||||
|
# 1 |
||||||
|
/** |
||||||
|
* 1 |
||||||
|
* 2 |
||||||
|
*/ |
||||||
|
} |
||||||
|
} |
||||||
|
?> |
||||||
|
--EXPECT-- |
||||||
|
success |
||||||
Loading…
Reference in new issue