adamschmideg / coffeescript-eclipse

CoffeeScript plugin for Eclipse using XText
66 stars 23 forks source link

Highlighted syntax error when assigning to arrays #8

Open clockworkgeek opened 12 years ago

clockworkgeek commented 12 years ago

To begin with, array-assignment appears Ok.

a = []
a[i] = x

But if an array is a property of some other object then it is red-underlined with the tooltip "no viable alternative at input '='".

@a[i] = x
this.a[i] = x
any.nested.array[i] = x
this[i] = x

The last of those also causes an error even though it is valid, it is probably the same rule which legitimately highlights these bad statements.

null[i] = x
undefined[i] = x
giacecco commented 12 years ago

Deeply nested properties are known to be unsupported, see the readme here. It is not clear if adamschmideg is planning to address that.