latex-lsp / texlab-vscode

LaTeX for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=efoerster.texlab
GNU General Public License v3.0
89 stars 4 forks source link

[suggestion] Richer syntax highlighting #370

Open coxackie opened 3 years ago

coxackie commented 3 years ago

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.

pfoerster commented 3 years ago

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.

coxackie commented 3 years ago

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).

adityamwagh commented 2 years ago

Hey @pfoerster ! Any update on this?

pfoerster commented 2 years ago

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.