Skip to content

Parser breaks if the directive is moved to the new line #8

Description

@upcFrost

Hi,

Parser seem to break if the directive is moved to a line different from where the field is. Example:

directive @x on FIELD_DEFINITION

type X {
    a: String
    @x
}

This is a valid syntax (or at least a widely recognized one), and it's frequently used when you have a lot of directives with extra args. The parser breaks trying to evaluate value type

Best regards,
Petr

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions