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
Hi, the latest GraphQL spec updated the description syntax: graphql/graphql-js#927. This is not supported by the current syntax highlighting. An example:
"""Description that isspanning multiple lines"""typeTest {
"Field description"field: String
}
Thanks for opening the issue! Yes, I think you're right that adding new elements would be best. AFAIK, "block strings" (delimited with """) are valid anywhere that a string is allowed, right? So, maybe we should add rules for block strings? (graphql/graphql-spec#327)
Yes, but those are two different things. Block strings are allowed for field values (so in input values). This issue is about descriptions, which can be normal strings or block strings.
Hi, the latest GraphQL spec updated the description syntax: graphql/graphql-js#927. This is not supported by the current syntax highlighting. An example:
The current comment element is here: https://github.com/rmosolgo/language-graphql/blob/master/grammars/graphql.json#L162-L169 but for backwards compatibility, I think two new elements (descriptionline and descriptionblock) might be best?
The text was updated successfully, but these errors were encountered: