trustfall icon indicating copy to clipboard operation
trustfall copied to clipboard

Multiline comment at start of schema raises `SchemaParseError`

Open ginger51011 opened this issue 2 years ago • 0 comments

The following schema will raise a SchemaParseError if put at the top of a schema file

"""
This is a multiline comment
"""
schema {
    query: RootQuery
}

# ...

on the form

SchemaParseError(Syntax { message: " --> 1:1\n  |\n1 | \"\"\"\n  | ^---\n  |\n  = expected type_system_definition", start: Pos(1:1), end: None })

while the following is fine

# This comment is OK
schema {
    query: RootQuery
}

# ...

ginger51011 avatar Feb 20 '23 12:02 ginger51011