Semantic syntax highlighting#1203
Conversation
|
I'm still not sure if semantic highlighting is something we want to support, it's a terrible spec.
https://www.masteringemacs.org/article/tree-sitter-complications-of-parsing-languages |
|
I'll close this then and implement it on my branch until it can be made a plugin. |
|
It would be nice if we could replicate the benefits of semantic syntax higlighting through tree-sitter, but that sounds pretty complicated or impossible in the case of doc comments. I assume it would require plugins too. |
|
What are some of the benefits? Highlighting mutable variables can be done through |
|
Doc comments can be highlighted differently once tree-sitter/tree-sitter-rust#99 is merged |
|
The benefits are that the ones for major languages usually have very accurate syntax highlighting and can differentiate between types, and that some languages are sufficiently incompatible with tree-sitter like Prolog. It doesn't look like it can omit the leading characters |
No description provided.