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
When lexing a String Value we can have three different error types:
unterminated string
unexpected escape character
unexpected line terminator
If there is a unexpected escape character or unexpected line terminator and also the string value is unterminated, we only get the unterminated string error message, as the errors get overridden.
For example:
let gql = "\"\n hello"
let lexer = Lexer::new(gql);
produces only ERROR@0:7 "unterminated string value" "hello error, where it would be really helpful for users to also have the unexpected line terminator error as well.
The text was updated successfully, but these errors were encountered:
When lexing a String Value we can have three different error types:
If there is a unexpected escape character or unexpected line terminator and also the string value is unterminated, we only get the unterminated string error message, as the errors get overridden.
For example:
produces only
ERROR@0:7 "unterminated string value" "hello
error, where it would be really helpful for users to also have the unexpected line terminator error as well.The text was updated successfully, but these errors were encountered: