-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add Astro language #5460
Add Astro language #5460
Conversation
From #5459
Close, but not quite yet: Total files found: 1053 |
Surely it'll be at 200 by, like, tomorrow then |
@Nixinova 👋🏻 Astro maintainer here, thanks for opening this PR! I'm having some trouble accessing your grammar to check it for correctness. At any rate, we'd definitely prefer to point to the official Astro |
All good now: Total files found: 1542 |
Whoops, looks like someone forced the switch to the Astro provided grammar without checking the output or using the provided script and thus missed the fact it has syntax errors and thus doesn't compile:
This means that whilst support will be added for Astro in the next release, which I'm in the process of putting together and testing, it'll mean there will be no syntax highlighting. I can delay the release if this can be fixed by Monday morning 🇬🇧 time, else I'll need to revert this PR. |
Thanks @lildude, I think we can make your deadline. Is there a tool you know of to verify the syntax is correct? Otherwise we'll just assume its all of these captures. |
Fixed with withastro/astro#926 - the Astro team is quick |
Does the |
Nope. We update as part of making each release; that's how I spotted this. Just pulled the latest SHA and things are looking much better - there are a couple of warnings about missing includes because the grammar is attempting to use scopes Linguist doesn't know about (they appear to be grammars supplied by VSCode), but that's not a major issue and only means some parts may not highlight as expected. Thanks for the quick turnaround everyone 🙇. |
Thanks @lildude, are you using Lightshow to test the grammar? If so we can improve it on our end using that. |
@matthewp Nope. I'm using our grammar compiler (step 3i in the release process) and it has a bunch of checks. This is what picked up the problems with the grammar. |
hopefully we can pull that in to lint our own grammar? |
When I click on "Astro" in the language breakdown, I navigate to https://github.com/snowpackjs/astro/search?l=astro, but I get "astro language not found"... is there something wrong with our config or does a different project need Astro added too? |
GitHub Search isn't updated at the same time Linguist is and is synced less often. |
Resolve #5459
Description
Adds the language used in the Astro static site generator.
Checklist:
(preview)(preview)