Skip to content

Syntax errors on arrays of objects #11

Description

@giacecco

Coffeescript code like this:

arrayOfObjects = [
    'object1property1': "foo"
    'object1property2': "bar"
  ,
    'object2property1': "foo"
    'object2property2': 
      'object2property2subproperty1': "ba"
      'object2property2subproperty2': "r"
]

triggers strange syntax errors. On the comma I get

mismatched input ',' expecting RULE_RBRACKET

On the "object2property2" and "object2property2subproperty2" lines I get:

no viable alternative at input ':'

Is it the same problem as deeply nested properties described here? Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions