redhat-developer / vscode-yaml

YAML support for VS Code with built-in kubernetes syntax support
MIT License
668 stars 223 forks source link

Language Textmate Scope Splits Off First Character #789

Open sjc93 opened 2 years ago

sjc93 commented 2 years ago

Working to make additionally Grammars for a yaml extension and we are having an issue where the first character of a string defined as string.unquoted.plain.out is split out into its own group of the same type.

Using the Inspect Editor Tokens and Scope developer tool we see the following

image

image

This make any type of match logic we try to inject into the source.yaml nearly impossible.

Has anyone else noticed this or have a way to fix it?

evidolob commented 2 years ago

@sjc93 AFIK we use yaml.tmLanguage.json converted from https://github.com/textmate/yaml.tmbundle/blob/master/Syntaxes/YAML.tmLanguage So we not maintain syntax highlight.

Cthuflu commented 8 months ago

The textmate/yaml.tmbundle grammar seems to no longer be maintained, with the last PR accepted in 2016 and the last commit in 2018.

I have fixed this issue in https://github.com/textmate/yaml.tmbundle/pull/45