Simplify skipComment() function.
Simplify skipComment() function.

Just like in V8 and other JavaScript engine, handle single-line and multi-line
comment separately. This avoids building a "mini state-machine" inside
skipComment() function.

This reduces the cyclomatic complexity of skipComment() from 19 to 8.

http://code.google.com/p/esprima/issues/detail?id=396

kittens/esprima,jscs-dev/esprima-harmony,facebookarchive/esprima,thr0w/esprima,thr0w/esprima,fishbar/esprima,fishbar/esprima,thr0w/esprima,sebmck/esprima,facebookarchive/esprima,facebook/esprima,fishbar/esprima,jscs-dev/esprima-harmony,kittens/esprima,sebmck/esprima,facebook/esprima,facebook/esprima,facebookarchive/esprima