jshint/jshint — pull request #599 by PStahl (2012-07-30 06:23:50+00:00)
Title: Fix for issue #540

Previously jshint reported a lot of problems for nested comments. The problem is that after a second /* jshint consider the text found as javascript, which of course generates a lot of errors (among others every word generates a undefined variable error).
For example
/* This is a comment
/* This is also a comment but this text is considered as javascript and generates a lot of errors.
*/
To fix this issue I added that when found a start of a comment, I look for another slash star (nested comment) and set the string s to be the substring of s starting with /*, that string is later considered as a comment and does therefore not generate the above mentioned problems. Also when found a */ I do nothing if the token is a comment, because we have then found the end of our comment and should do nothing.