In order to match GraphQL syntax inside of template strings, we recreate
the JavaScript/TypeScript template string syntax regions and embed our
syntax within them. These region's 'start' and 'end' patterns were
therefore being matched using our syntax groups.
Instead, use 'matchgroup=' to explicitly match the boundaries using the
base syntax's groups. This better integrates with those filetype's
natural syntax and indentation definitions while still giving us control
over the embedded GraphQL syntax.
In order to match GraphQL syntax inside of template strings, we recreate the JavaScript/TypeScript template string syntax regions and embed our syntax within them. These region's 'start' and 'end' patterns were therefore being matched using our syntax groups.
Instead, use 'matchgroup=' to explicitly match the boundaries using the base syntax's groups. This better integrates with those filetype's natural syntax and indentation definitions while still giving us control over the embedded GraphQL syntax.