Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@internal attribute not handled correctly #19

Open
SpyrosRoum opened this issue May 9, 2024 · 0 comments
Open

@internal attribute not handled correctly #19

SpyrosRoum opened this issue May 9, 2024 · 0 comments

Comments

@SpyrosRoum
Copy link

SpyrosRoum commented May 9, 2024

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:

  • I am using doom-emacs, so not the build in tree-sitter.
  • Emacs version 30.0.50
  • I have the latest version of the grammar, which is also the one pinned in this repo.
  • I am on tree-sitter version 0.22.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant