stephens2424 / php

Parser for PHP written in Go
BSD 3-Clause "New" or "Revised" License
529 stars 77 forks source link

Parser issue with nested if/else blocks. #22

Open gleamingthecube opened 9 years ago

gleamingthecube commented 9 years ago

test file:

<?php
if (true)
    if (true)
        echo 1;
    else
        echo 2;

if (true) echo 1;
?>

got:

Found echo:"echo", expected [;]