emacs-fsharp-mode icon indicating copy to clipboard operation
emacs-fsharp-mode copied to clipboard

Add support for tree-sitter syntax highlighting?

Open atlemann opened this issue 3 years ago • 4 comments
trafficstars

Description

The syntax highlighting is a bit lacking. When VSCode added syntax APIs, Ionide used that instead of Regex and it got so much better. Would it be possible to follow the work done here: https://github.com/emacs-csharp/csharp-mode/issues/201 and use https://emacs-tree-sitter.github.io for more fine grained highlighting?

Expected behavior

Detailed syntax highlighting like Ionide in VSCode

Actual behavior

Too little of the code is highlighted, but it would be nice to get e.g. types, namespaces and members in different colors.

atlemann avatar Jun 22 '22 13:06 atlemann

Now that emacs 29.1 has support for tree-sider code, a PR for a fsharp-ts-mode would be awesome.

juergenhoetzel avatar Jul 30 '23 18:07 juergenhoetzel

Hello! I was looking into this, and I came across this grammar. Does anyone know if it's at a stage where it can be used to implement a tree-sitter based major mode?

KaranAhlawat avatar Mar 16 '24 18:03 KaranAhlawat

Hello! I was looking into this, and I came across this grammar. Does anyone know if it's at a stage where it can be used to implement a tree-sitter based major mode?

Its highlight looks okay to me, using the prebuilt binary in this https://github.com/kiennq/treesit-langs

kiennq avatar Apr 12 '24 21:04 kiennq