vscode-yaml icon indicating copy to clipboard operation
vscode-yaml copied to clipboard

Language Textmate Scope Splits Off First Character

Open sjc93 opened this issue 3 years ago • 2 comments

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?

sjc93 avatar Jun 28 '22 13:06 sjc93

@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.

evidolob avatar Jun 29 '22 09:06 evidolob

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

Cthuflu avatar Mar 27 '24 15:03 Cthuflu