yaml-language-server icon indicating copy to clipboard operation
yaml-language-server copied to clipboard

Semantic Tokens support

Open eeshugerman opened this issue 4 years ago • 1 comments

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.

eeshugerman avatar Oct 15 '20 20:10 eeshugerman

depends on #442

gorkem avatar May 01 '21 14:05 gorkem

Now that treesitter is a thing I'm not really interested in this anymore, so I'm gonna close it. Feel free to reopen.

eeshugerman avatar Jan 22 '23 15:01 eeshugerman