tree-sitter-just icon indicating copy to clipboard operation
tree-sitter-just copied to clipboard

Treesitter does not handle [private] alias

Open AddictArts opened this issue 3 months ago • 5 comments

It seems the treesitter will error on a private alias. Using InspectTree I see the error, remove the private anno and fixed. Example:

alias foo := bar
[private]
alias o := open

AddictArts avatar Mar 30 '24 07:03 AddictArts

What version and editor are you using? This works correctly when I try with the latest main and Helix

image

tgross35 avatar Mar 30 '24 18:03 tgross35

A screenshot would be helpful too

tgross35 avatar Mar 30 '24 18:03 tgross35

@AddictArts in case you didn't see the above

tgross35 avatar Apr 04 '24 07:04 tgross35

@AddictArts in case you didn't see the above

Thank you. I will get a better example, it will take some time though. Hopefully on Monday I can. Don't have the machine available to get it. But we are doing some fairly advanced justfile stuff, so I wasn't surprised. Apologies that I made an assumption on the issue.

AddictArts avatar Apr 06 '24 01:04 AddictArts

@tgross35 Found the issue, I couldn't share the file, updated the issue to the below

It seems the treesitter will error on a private alias. Using InspectTree I see the error, remove the private anno and fixed. Example:

alias foo := bar
[private]
alias o := open

AddictArts avatar Apr 12 '24 18:04 AddictArts