-
-
Notifications
You must be signed in to change notification settings - Fork 8
Add language in LanguageManager from &str #104
Comments
You can't in the C code. Doing it in rust would mean putting this string into a file located into the search path of the |
So this would be a limitation of the underlying C library? |
Not sure if this was obvious, but that was a feature request, not really a question. I don't know a lot about the code base, but would it be really difficult to implement? If it's not that hard, I can try to do it and open a PR |
If you're talking about adding it in the Rust code base, I can't assure you we'll accept it. We're not big fans of adding specific features to the binding instead of the C library. If it's the C library you're talking about, then it's not the good place. :) |
Hi! Just a quick note that, in my specific case, I'll try to get my .lang files accepted directly into the upstream C project, as others could also make use of it. |
Right now, the only way to use a custom language for syntax highlighting is to install the .lang file inside specific folders or add a folder that contains it to the search path.
It would be very nice to add the ability to load a custom language syntax from a &str, which would allow to embed the file inside the executable using the include_str!() macro.
The text was updated successfully, but these errors were encountered: