I get a lexical error when trying to parse:
var z = x[i] / y;
Don't have time to look further into it at the moment, otherwise I'd send a pull request again.
Fixed bug where lexer does switches to regexp mode after a ']' char, …
…reported by @aszlig
Version 0.5.4 is now on hackage