yoya / js2-mode

Automatically exported from code.google.com/p/js2-mode
0 stars 0 forks source link

"Missing ; after statement" gets confused by "new" #84

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

function foo() {
  baz = new bar()
}

What is the expected output? What do you see instead?

There are two warnable offenses here: baz is undefined and we're missing a
semicolon. So the entire second line should be underlined in orange, and
baz should be coloured orange. However, only the space before the 'b' in
'baz' is underlined. If you use some camelCase for the variable name, e.g.
bazBaz, then it seems that all characters before the _character before_ the
last capital letter are underlined. E.g. with bazBazBaz, "bazBa" will be
underlined.

Original issue reported on code.google.com by dmho...@gmail.com on 16 Jul 2008 at 8:56

GoogleCodeExporter commented 8 years ago
Definitely yucky-looking.

Original comment by steve.ye...@gmail.com on 23 Jul 2009 at 11:16