[regression] TextMate YAML highlighting
https://github.com/pedro-w/vscode-tmlanguage/commit/0aa687c4e1a60ce5e186461c598912531a84ae14 changed the custom TextMate YAML highlighting to just normal YAML highlighting
Before:
Now:
I see what you mean. That commit was a while ago but I think there were problems with the highlighter as it was, and it seemed simpler to use the 'standard' one.
Hopefully we can find a hybrid version to add back in the specific highlighting.
On that subject - is the red highlighting of { in the top picture significant / desirable?
the { being highlighted as red is a bug
\{ should be treated as string, which it is currently not
so VSCode thinks it is a opening bracket without a closing bracket
I can replace the highlighter file with this one: https://raw.githubusercontent.com/SublimeText/PackageDev/refs/heads/master/Package/TextMate%20Syntax%20Definition%20(YAML)/TextMate%20Syntax%20Definition%20(YAML).tmLanguage and we get back to something that looks like the custom highlighting in the first screen shot. It still has the red highlighting on '{' though. Question is, can I just copy this file over? That repo and this one are both MIT licensed. What do you think @RedCMD ?
mit license is fine
you can add "tokenTypes" under "grammars" in package.json to change the standard token type for certain scopes
"tokenTypes": {
"constant.character.escape": "string"
},
and the onigregex file https://github.com/SublimeText/PackageDev/blob/master/Package/TextMate%20Syntax%20Definition%20(YAML)/Oniguruma%20Regular%20Expression.tmLanguage