graphql / graphql/graphiql

[vscode-graphql-syntax] Inconsistend highlighting of `extend` keyword

Open
#3,453 0 comments 0 reactions 0 assignees View on GitHub
bug vscode-graphql-syntax
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

### Current Behavior

In the following examples, the `extend` keyword is highlighted differently:

![image](https://github.com/graphql/graphiql/assets/12209111/101839cf-3a07-4382-9588-c426f50d5205)

![image](https://github.com/graphql/graphiql/assets/12209111/f91b84a2-b43f-4098-a854-54e569e55250)

### Expected Behavior

I would expect the `extend` keyword to be highlighted the same in both cases.

_Looking at [the grammars](https://github.com/graphql/graphiql/blob/main/packages/vscode-graphql-syntax/grammars/graphql.json) I get the feeling the `extend` keyword is not supported at all. In this case I'd expect the `extend` keyword to be supported by syntax highlighting._

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.