You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same problem as @hooke. Very confusing because even though the code is actually commented out, the syntax highlighting makes it appear as if the code will run.
Note that I only encounter this issue when using a multi-line comment /* */ and NOT a single line comment //, and then typing a closing curly bracket }
Activity
jelera commentedon Jul 26, 2015
I've tried to replicate this issue, but I didn't get the result as in the screenshot. Send me a gist with more source code so I can test this.
hooke commentedon Jul 29, 2015
This is the example gist: https://gist.github.com/hooke/cd52a602c94f97ce750d

In gist comments are highlighted correctly.
In my vim with vim-javascript-syntax plugin it looks like:
ghost commentedon Sep 7, 2015
Same problem as @hooke. Very confusing because even though the code is actually commented out, the syntax highlighting makes it appear as if the code will run.

Note that I only encounter this issue when using a multi-line comment
/* */
and NOT a single line comment//
, and then typing a closing curly bracket}
ghost commentedon Apr 27, 2016
Javascript