Read a really good post on automatic semicolon insertion (ASI) in JavaScript. I highly recommend reading it if you're not familiar with how ASI works.

http://inimino.org/~inimino/blog/javascript_semicolons

The author even includes the parser expression grammar for ECMAScript for those interested.

Enjoy!



blog comments powered by Disqus