-
Notifications
You must be signed in to change notification settings - Fork 101
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
Syntax highlight vimscript #200
Comments
Hey, sorry for not getting back to you on this. We use I think it'd be a good idea for us to add a "syntax folder" so people can add syntax files on top of what is already supported. For someone wanting the details, we'd need to refactor cobalt.rs/src/syntax_highlight.rs so that we can call if load_syntax_files {
syntax_set.load_syntaxes(syntax_path, false);
syntax_set.link_syntaxes();
}
I'm leaning towards checking if the directory exists. I'm for minimizing configuration unless we have a good use case so I'd like to avoid a |
Looks like |
@epage, [1]: https://github.com/cobalt-org/cobalt.rs/blob/master/src/syntax_highlight.rs#L34 There are a few ways to handle the mutability requirement:
[2]: https://github.com/cobalt-org/cobalt.rs/blob/master/src/syntax_highlight.rs#L31 @epage, which route would you prefer I take with this? |
I plan to parallelize cobalt.
|
Oh, so I talked about the The main challenge there is being efficient while doing so. We already have to The markdown formatting is less difficult to efficiently share because the call stack is shallower. |
Hi, Really nice project! How would I implement syntax highlighting for vimscript? Could I add a sublime syntax highlight definition file to my project somehow or do I need to modify cobalt or syntect?
The text was updated successfully, but these errors were encountered: