google / closure-linter

Automatically exported from code.google.com/p/closure-linter
Apache License 2.0
109 stars 37 forks source link

Nested ternary operator causing a parsing error #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Nested ternary operators are causing a parsing error.

Example input:
a ? b ? 1 : 2 : 3;

Output (abbreviated):
Line 2, E:-002: Error parsing file at token ":". Unable to check the rest of 
file.

Original issue reported on code.google.com by jankass...@gmail.com on 1 Sep 2010 at 11:06

GoogleCodeExporter commented 9 years ago

Original comment by a...@google.com on 3 Sep 2010 at 2:55

GoogleCodeExporter commented 9 years ago
I can reproduce and we've gotten other reports of this. Will fix for the next 
release.

Original comment by a...@google.com on 7 Sep 2010 at 3:57

GoogleCodeExporter commented 9 years ago
This should be fixed in version 2.2.5

Original comment by a...@google.com on 17 Sep 2010 at 1:45