atom-elmjutsu icon indicating copy to clipboard operation
atom-elmjutsu copied to clipboard

Check if atom-elmjutsu can use a tree sitter for code highlighting

Open razzeee opened this issue 5 years ago • 8 comments

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

razzeee avatar Apr 10 '19 15:04 razzeee

Looks cool! How do we use that?

halohalospecial avatar May 21 '19 10:05 halohalospecial

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)

razzeee avatar May 21 '19 11:05 razzeee

https://flight-manual.atom.io/hacking-atom/sections/creating-a-grammar/#the-package

razzeee avatar May 22 '19 18:05 razzeee

You may need to publish it first: https://flight-manual.atom.io/hacking-atom/sections/creating-a-grammar/#the-parser

halohalospecial avatar May 23 '19 02:05 halohalospecial

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

razzeee avatar May 23 '19 08:05 razzeee

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

Arcanemagus avatar May 29 '19 19:05 Arcanemagus

According to the author it's not (yet) relevant https://twitter.com/maxbrunsfeld/status/1131339401189965825

razzeee avatar May 30 '19 07:05 razzeee

There now is https://atom.io/packages/language-elm-treesitter/

razzeee avatar Oct 16 '19 07:10 razzeee