-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
keep-openTells Stale Bot to keep PRs and issues openTells Stale Bot to keep PRs and issues open
Description
Describe the bug
When a non-BlockString string contains escaped characters like newlines or quotes, AstPrinter does not escape them and the resulting document is not valid GraphQL.
=== Original ===
"\"" scalar A
=== Parsed and printed ===
"""
scalar A
Exception in thread "main" graphql.parser.InvalidSyntaxException: Invalid syntax with ANTLR error 'token recognition error at: '"""\nscalar A\n'' at line 1 column 1
at graphql.parser.Parser$1.syntaxError(Parser.java:368)
…
Metadata
Metadata
Assignees
Labels
keep-openTells Stale Bot to keep PRs and issues openTells Stale Bot to keep PRs and issues open