Closed GoogleCodeExporter closed 9 years ago
This is still in 2.2.6 :(
Original comment by filip.noetzel
on 12 Nov 2010 at 8:25
Attached is a simplified version of the above testcase + fix.
Basically, _StatementCouldEndInContext[1] should not return True if the current
token is "var".
[1]
http://code.google.com/p/closure-linter/source/browse/trunk/closure_linter/ecmam
etadatapass.py#472
Original comment by filip.noetzel
on 20 Feb 2011 at 9:49
Attachments:
Yep. I looked into fixing this quite a while ago. It's fairly straight forward
to not have the missing semi-colon error. The problem is that this then leads
to a much more difficult to fix error in indentation checking. I'd prefer for a
fix that just makes the case work completely rather than trading one error for
another. The right way to do indentation checking and missing semi-colon
detection is probably to have a real grammar and parser, though it might be
easier at this point to just improve GJsLint home-grown efforts to be good
enough. Hopefully someone will be willing to take on the larger indentation /
missing semi-colon work and fix all the issues, of which this is only one of
several.
Original comment by a...@google.com
on 20 Feb 2011 at 11:40
Original comment by vagra...@google.com
on 5 Aug 2013 at 9:49
Original issue reported on code.google.com by
a...@google.com
on 16 Sep 2010 at 1:51