jparise / vim-graphql

A Vim plugin that provides GraphQL file detection, syntax highlighting, and indentation.
MIT License
487 stars 25 forks source link

Rework reason syntax highlighting #78

Closed jparise closed 3 years ago

jparise commented 3 years ago

Use two regions to represent the extension point that wraps an embedded GraphQL string:

The previous approach was finicky due to the character-wise offsets I was using, which proved overly tricky and error prone.

Fixes #76