IndianBoy42 / tree-sitter-just

Treesitter grammar for Justfiles (casey/just)
Apache License 2.0
144 stars 26 forks source link

Support slashes in recipe name #156

Closed Jasha10 closed 7 months ago

Jasha10 commented 7 months ago

Hello,

Thank you for your work on tree-sitter-just!

Currently, just supports slashes in recipe names:

# justfile
foo/bar:
  echo baz

However, the above seems to break tree-sitter-just, and syntax highlighting fails.

tgross35 commented 7 months ago

That sounds easy enough, I didn’t know they were allowed. Any chance you can find a specific list of allowed characters in Just’s documentation?

Jasha10 commented 7 months ago

~I found https://github.com/casey/just/blob/master/GRAMMAR.md, which does not mention slashes at all. According to section 1.8.4 in the just manual, the GRAMMAR.md file is "non-normative."~

Edit: Actually it seems that slashes are not supported in recipe names. I'm getting an error now when I try to run just on the file I pasted above. I'm not sure why I thought that worked... Sorry for the trouble.

tgross35 commented 7 months ago

Thank you for taking a look into this!