-
Notifications
You must be signed in to change notification settings - Fork 143
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
panic on a svelte file #421
Comments
Thank you for the bug report. This is most likely a variant of sharkdp/bat#915 The plan is to fix this whole category of problems by falling back to Plain Text when referenced syntaxes are missing. This is what Sublime Text seems to be doing. There is some prototype code for that linked to from that issue. I hope to get around converting that prototype code to production code at some point, but there are currently more high prio things to do before that. I don't think there is a ticket in syntect for this work, so we can keep this ticket open for that. |
The problem IMO isn't about the fallback plan: that's the concern of the application instead and it must already have those plans for many other cases. What's crucial is that there's no panic in the syntect library but an error so that the program doesn't crash. |
|
Here's the file:
It breaks both bat and broot, both using syntect 4.6.0.
The text was updated successfully, but these errors were encountered: