language-graphql icon indicating copy to clipboard operation
language-graphql copied to clipboard

Fix definitions highlighting after field and variable

Open Hellzed opened this issue 6 years ago • 2 comments

Before this change, description strings are not highlighted after:

  • the first field in a type,
  • the first variable in a field.

image

Descriptions for type fields and field variables are explicitly allowed by the GraphQL spec.

This change fixes highlighting of string values in types and fields, according to the spec. image

Hellzed avatar Oct 26 '19 20:10 Hellzed

Any chance of implementing this pull request?

FallingSnow avatar Feb 26 '20 17:02 FallingSnow

@FallingSnow Actually I think it might cause other issues... I think it would just be better to port it to a TreeSitter grammar.

Hellzed avatar Feb 26 '20 20:02 Hellzed