gleam-lang / gleam-mode

🐙 Gleam support for Emacs
Apache License 2.0
81 stars 23 forks source link

@internal attribute not handled correctly #19

Open SpyrosRoum opened 6 months ago

SpyrosRoum commented 6 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: