You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug is in the syntect library that I use for syntax highlighting.
This library unfortunately contains some panic and crashes instead of returning an error.
The options here seem to be
find another crate for syntax highlighting: I know none (I'll only consider pure Rust ones)
wait for syntect 5 to be available, assuming this bug would be fixed (if it isn't, it would be at least easier to contribute)
fork syntect and remove the encountered cases of panic (then wait for syntect 5, I won't try to maintain a dedicated fork longer than strictly necessary)
try to unwind the panic...
If you encountered the crash when previewing a file, please tell me.
The text was updated successfully, but these errors were encountered:
I've an example of a svelte file: See trishume/syntect#421
The bug is in the syntect library that I use for syntax highlighting.
This library unfortunately contains some
panic
and crashes instead of returning an error.The options here seem to be
If you encountered the crash when previewing a file, please tell me.
The text was updated successfully, but these errors were encountered: