Currently not all places listed in the spec are supported for syntax highlighting. Especially many type system directive locations are missing. This pull request adds the missing places to the grammar, so that directives are syntax highlighted on all possible places.
Potentially this also fixes issue graphql/graphiql#2300.
GraphQL directives can be added to many places: https://spec.graphql.org/draft/#sec-Type-System.Directives
Currently not all places listed in the spec are supported for syntax highlighting. Especially many type system directive locations are missing. This pull request adds the missing places to the grammar, so that directives are syntax highlighted on all possible places.
Potentially this also fixes issue graphql/graphiql#2300.