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

[suggestion] Richer syntax highlighting

Open coxackie opened this issue 4 years ago • 4 comments

I have recently switched from Latex-workshop to this extension, which is very good (feels much more lightweight), and I am quite happy with it. Great job (also for the server, of course, which I also use with the new lsp neovim functionality)!

One thing I slightly miss is richer syntax highlighting (italics in \emph{} in the editor, etc.). I found this extension which works well together with texlab-vscode, but (a) looking at the code, it is mainly copied from Latex workshop and (b) looking at the version history, seems to be abandoned, anyway. I was wondering whether it would be possible to provide slightly richer syntax highlighting as part of texlab-vscode itself.

Once again, thanks for making tex-editing a pleasure.

coxackie avatar Jan 31 '21 16:01 coxackie

Thanks for the kind words :)

Providing better syntax highlighting is definitely a goal. I am currently replacing our hand-written (not incremental) parser with an incremental tree-sitter parser, which is much faster. Once this is done, I will work on semantic highlighting, which should provide much richer syntax highlighting. This way, we should have great syntax highlighting for a variety of editors.

pfoerster avatar Feb 01 '21 12:02 pfoerster

That is great - many thanks! Presumably it will also help a lot in neovim, given that in-built tree-sitter support is to come very soon (already looking good there in nightly).

coxackie avatar Feb 01 '21 23:02 coxackie

Hey @pfoerster ! Any update on this?

adityamwagh avatar Aug 13 '22 03:08 adityamwagh

Any update on this?

Unfortunately not. The tree-sitter part was scrapped in favor of a (much better) hand-written parser but there is no semantic highlighting available yet.

pfoerster avatar Aug 15 '22 15:08 pfoerster