gleam-lang / gleam-mode

🐙 Gleam support for Emacs
Apache License 2.0
77 stars 20 forks source link

Pull new treesitter to allow for "let assert" #13

Closed wmealing closed 1 year ago

wmealing commented 1 year ago

Gday,

It looks as though the gitsubmodule for treesitter could do with an update. The current git submodule points to a version of treesitter that doesn't support let assert, messing with the synax with new gleam 0.27.

I hope that made sense. In the mean time, if anyone is having a problem with emacs syntax highlighting since the "let assert" change, you can:

Remove the git module rm -rf tree-sitter-gleam

Then check out the new tree sitter git clone https://github.com/gleam-lang/tree-sitter-gleam.git

It may require building. cargo build

You probably need to restart emacs after. This seemed to fix it for me.

wmealing commented 1 year ago

Thank you for considering this issue.

lpil commented 1 year ago

Sounds great! I'll leave this for the emacs team or contributors as I'm not an emacs user.

J3RN commented 1 year ago

My apologies for the delay, tree-sitter-gleam has now been updated.