atom-elmjutsu
atom-elmjutsu copied to clipboard
Check if atom-elmjutsu can use a tree sitter for code highlighting
See https://github.com/Razzeee/tree-sitter-elm for my implementation, I believe, that we would still need a css file for the colors like here for python https://github.com/tree-sitter/tree-sitter-python/blob/master/properties/highlights.css
It should hopefully improve code highlighting with broken syntax
Looks cool! How do we use that?
I have no idea, will hopefully be back with some more info later.
(btw in the longrun it might make sense to also rely on the language server I'm writing)
https://flight-manual.atom.io/hacking-atom/sections/creating-a-grammar/#the-package
You may need to publish it first: https://flight-manual.atom.io/hacking-atom/sections/creating-a-grammar/#the-parser
It should be published? https://www.npmjs.com/package/tree-sitter-elm
Btw the link above https://github.com/tree-sitter/tree-sitter-python/blob/master/properties/highlights.css is not relevant at all
Btw the link above https://github.com/tree-sitter/tree-sitter-python/blob/master/properties/highlights.css is not relevant at all
That link is relevant for creating a language package for Atom, but not relevant for the Tree-sitter grammar itself 😉.
According to the author it's not (yet) relevant https://twitter.com/maxbrunsfeld/status/1131339401189965825
There now is https://atom.io/packages/language-elm-treesitter/