graphql / graphql/graphiql

Broken syntax highlighting with variable directives

Open
#2,434 2 comments 0 reactions 1 assignee Claimed by @thomasheyenbrock View on GitHub
enhancement grammar graphiql graphql-language-service
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

image

According to the [GraphQL specification from October 2021](https://github.com/graphql/graphql-spec/blob/October2021/spec/Section%202%20--%20Language.md#variables) directives can be applied to operation variables.
However, GraphiQL 1.8.2 doesn't seem to handle them properly. The syntax highlighting is breaking when you add a directive between variable definitions.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.