-
Notifications
You must be signed in to change notification settings - Fork 139
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
Use native rust regex? #12
Comments
No, because Sublime syntaxes use all sorts of fancy features like back-references. It might be possible to switch to fancy-regex from the pulldown-cmark repo with some extra work on that library though. That library isn't quite good enough yet but it might be with a bit of work. |
Oh interesting, I expected some missing feature to be the reason that you didn't use the official rust regex crate. Fancy-regex looks interesting, they even mention sublime-text syntax files as being a use case. Are they using it to highlight source files as well? |
It was written by the author of https://github.com/google/xi-editor in anticipation of him writing a highlighter for Sublime Text syntax files, I just got to it first. It's currently mostly but not completely finished, and not used by anything as far as I know. |
@trishume The |
+1. I was experimenting with syntect in a project targeting emscripten (basically using syntect in the browser as an alternative to highlight.js), but it chokes on building |
@anowell I seem to remember that the |
Looks like it should work as of
|
It'd be great to have a better regex library. I've been getting segfaults in Oniguruma. |
This issue can be closed with the motivation: Fixed in https://github.com/trishume/syntect/releases/tag/v4.0.0 (Maybe someone with Collaborator privileges can help me clean the syntect issue inbox? This is one of a handful cleanup actions we can take. I will happily point out more if someone is interested in helping me out.) |
Support VHDL and Verilog
Having a dependency on a cmake and a C compiler makes it hard to use this project due to the dependency libonig. Would it be possible to switch over to the official rust regex package?
The text was updated successfully, but these errors were encountered: