Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support block string syntax #1219

Merged
merged 3 commits into from
Jan 16, 2018
Merged

Support block string syntax #1219

merged 3 commits into from
Jan 16, 2018

Conversation

rmosolgo
Copy link
Owner

This was recently added to the spec: graphql/graphql-spec#327

Fortunately, the spec contained a step-by-step algorithm for handling whitespace 😊

Closes #1150

@cjoudrey
Copy link
Contributor

Just a thought, we might want to copy some of the indentation tests found here: https://github.com/graphql/graphql-js/blob/36ec0e9d34666362ff0e2b2b18edeb98e3c9abee/src/language/__tests__/blockStringValue-test.js#L12

@rmosolgo
Copy link
Owner Author

That's wise, I'll add those tests!

😖 I got blank? and empty? confused, good thing we have a without-rails test suite to catch that.

@rmosolgo
Copy link
Owner Author

Thanks for pointing me to those tests, I found I was missing some sneaky parens in multipart conditional!

@rmosolgo rmosolgo added this to the 1.7.9 milestone Jan 16, 2018
@rmosolgo rmosolgo merged commit 56e2e88 into master Jan 16, 2018
@rmosolgo rmosolgo deleted the block-string branch February 1, 2018 14:58
@rmosolgo rmosolgo added this to the 1.7.9 milestone Feb 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants