try-haxe icon indicating copy to clipboard operation
try-haxe copied to clipboard

"Script mode" tweaks

Open clemos opened this issue 9 years ago • 3 comments

  • [ ] fix error reporting (offsets are quite obviously wrong)
  • [ ] implement custom class name (?)

clemos avatar Nov 26 '16 15:11 clemos

if you start with code comment, the complete class doesnt compile https://try.haxe.org/#A9765

// Is haxe great?
class Test {
    static function main() {
        trace("Haxe is great!");
    }
}

Build failure Test.hx:8: characters 0-5 : Unexpected class

markknol avatar Apr 11 '17 12:04 markknol

I'm on it

tariqbenezza avatar Apr 11 '17 12:04 tariqbenezza

We probably want to trim more than whitespaces here : https://github.com/clemos/try-haxe/blob/master/src/api/Compiler.hx#L94 We can use something like this instead of ltrim : https://try.haxe.org/#467a7

clemos avatar Apr 11 '17 12:04 clemos