The js code editor has a great feature which highlights corresponding brackets {()}
If a comment section /…/ contains brackets, they are - correctly - ignored in the bracket analysis.
However, if a single line comment is used with //, then brackets contained in the comment are - incorrectly - accounted for in the bracket analysis.
For instance, this code
function test(){
alert("test");
/* this bracket is ignored correctly: } */
}
highlights the function brackets {} correctly, while this code:
function test(){
alert("test");
// this bracket is - incorrectly - NOT ignored : }
}
highlights the bracket } in the comment line as closing bracket of the function.
Regards, Mikael

