HaxeCheckstyle / haxeparser

A Haxe parser for Haxe
61 stars 23 forks source link

ternary parsing fail #39

Closed Simn closed 7 years ago

Simn commented 7 years ago

This fails to parse for some reason:

class Main {
    static public function main() {
        var s = "class C { static function main() { a?8:0; }}";
        var p = new haxeparser.HaxeParser(byte.ByteData.ofString(s), "test");
        trace(p.parse());
    }
}

Works if there's a space in front of the :.