Skip to content

Problem with quoted values #26

@elliottinvent

Description

@elliottinvent

NOTE: This could be a problem with the playground, investigating

string = "abc";

->

Error: Only one primitive allowed at the root.

Same problem even if the key appears in a map:

my_object = (
  string = "abc";
  number = 1;
  array = [1; 2; 3];
  map = (a=1;b=2;c=3)
)

This also fails:

my_object = ( string = "abc" )

But with a different error:

Error: Unexpected token: 'type: rparen, from: 29, to: 30, value: ")"'

Latest version of the Rubygem at https://www.modl.uk/playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions