yaml-language-server
yaml-language-server copied to clipboard
Semantic Tokens support
Is your enhancement related to a problem? Please describe.
Yes, but it's a problem specific to Emacs: the YAML syntax highlighting provided by yaml-mode
is buggy because, in the author's words, "YAML ... is complex to parse, and this mode doesn't even really try".
Describe the solution you would like
I'd greatly appreciate it if yaml-language-server
supported Semantic Tokens. Emacs' lsp-mode
supports Semantic Tokens as of v7.0, so, if I'm not mistaken, if yaml-language-server
added support, then proper YAML syntax highlighting in Emacs could be a reality.
Describe alternatives you have considered
An alternative would be to write a new Emacs mode that actually parses YAML. If I wanted to learn elisp in depth I'd consider taking a stab at this, but I don't, and I'd be reinventing the wheel anyway.
depends on #442
Now that treesitter is a thing I'm not really interested in this anymore, so I'm gonna close it. Feel free to reopen.