graphql-rust / graphql-parser

A graphql query language and schema definition language parser and formatter for rust
Apache License 2.0
355 stars 77 forks source link

Make block strings parsing conform to GraphQL spec. #75

Closed fpacanowski closed 11 months ago

fpacanowski commented 1 year ago

Fixes https://github.com/graphql-rust/graphql-parser/issues/74.

This PR makes block string parsing conform to GraphQL spec. In particular the parser now strips leading and trailing empty lines from block string values. This implementation closely follows the reference JS implementation.