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

GitHub Linguist Syntax Bug #1626

Open
macintacos opened this issue Jun 21, 2023 · 4 comments
Open

GitHub Linguist Syntax Bug #1626

macintacos opened this issue Jun 21, 2023 · 4 comments

Comments

@macintacos
Copy link

macintacos commented Jun 21, 2023

Please ref the discussion I opened here: github-linguist/linguist#6401 (comment). There is an issue with the just syntax for multi-line strings that I am hoping can be fixed, as it makes several of my justfiles to be almost no better than just plaintext files 😅

In this comment, I noticed that the repo that the linguist file is pointing to is archived. It should likely be updated to something else, perhaps a grammar maintained in this repository itself?

@tgross35
Copy link
Contributor

I mentioned it there, but I am working on getting the tree-sitter syntax working better: https:/IndianBoy42/tree-sitter-just. I think GH should be able to use this.

@nk9
Copy link
Contributor

nk9 commented May 15, 2024

Unfortunately, GitHub Linguist only supports the venerable TextMate format. I have updated the syntax highlighting to use SublimeText format in the just_sublime package, but that isn't supported by GitHub at present either.

While it won't help you on GitHub, it's perhaps interesting to note that multiline strings work fine in the rewritten Sublime syntax, and (I belive) also in the vim-just syntax.

@tgross35
Copy link
Contributor

GH does apparently support tree-sitter grammars for some languages, sounds like it just isn't very public according to github-linguist/linguist#6073. So I did what is suggested there and opened a discussion at https:/orgs/community/discussions/116733, guess we will see if it goes anywhere...

@nk9
Copy link
Contributor

nk9 commented May 16, 2024

Wow, TIL! Good to see that they're expanding the sorts of grammars they're supporting.

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

3 participants