graphql-rust/graphql-parser

failure on directives with comments

casualjim opened this issue · 1 comments

When I want to parse a schema with these definitions, this parser fails. It works and validates with the js tools. Removing the block strings makes the parser succeed.

"""
Directs the executor to include this field or fragment only when the `if` argument is true.
"""
directive @include(
  """
  Included when true.
  """
  if: Boolean!
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT

"""
Directs the executor to skip this field or fragment when the `if` argument is true.
"""
directive @skip(
  """
  Skipped when true.
  """
  if: Boolean!
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT

Thanks for the report! Fixed grammar. Will cut a release after #10 (I think it should happen shortly).