-
-
Notifications
You must be signed in to change notification settings - Fork 237
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 when previewing seemingly innocent JavaScript text file #967
Comments
Damn. This is in syntect again, which I had already forked to patch a previous case of uncatched panic. I'll have a look. |
(reference: #485) Trying to use syntect 5 |
The bug is the same in syntect 5. It's related to the regex engine used. If, in Cargo.toml, I change
to
then the crash disappears. But the reason I use this feature was to avoid the onig crate: #956 (see https://github.com/trishume/syntect?tab=readme-ov-file#pure-rust-fancy-regex-mode-without-onig) |
to have non compiling regexes catched Fix #967
Summary, for anybody who would want to understand:
The current solution is to use a patched fork of syntect. This fork doesn't panic on compiling regexes. It doesn't apply the failing rules. |
broot 1.44.3 via Homebrew
The text was updated successfully, but these errors were encountered: