You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Um! It was designed to work if you put the curly brace immediately after the array open. var foo = [{ but that isn't what you want. This is more tricky than you'd imagine because I've tried to be spec correct and only allow method's inside object literals. Unfortunately, flow complicates this because I have to be aware what side of the assignment operator the object definition is, as this affects the parsing. Oh for being able to maintain state in TextMate grammars!!
Here's an example:
As you can see if an object is an array element, all nested objects are affected too.
We're almost there 😄
The text was updated successfully, but these errors were encountered: