gleam-lang / gleam-mode

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

@internal attribute not handled correctly #19

Open SpyrosRoum opened 3 months ago

SpyrosRoum commented 3 months ago

Hello, it looks like using @internal is not currently supported. The most obvious effect of this is syntax highlighting breaking from the attribute forward: image

One Interesting observation is that if I add parenthesis to the attribute, it works fine, but this is wrong and gleam fails to compile: image

I am not sure if this might be an issue for tree-sitter, please let me know if that's the case. I did check the tree and (attribute @ name: (identifier)) is recognised by tree-sitter, which seems correct to me, though I know little about ts: image

Edit to add info: