-
Notifications
You must be signed in to change notification settings - Fork 389
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
Feature: Add g:vimtex_syntax_custom_envs #2756
Conversation
Combine these into syntax#core#new_env and add option 'nested' to specify nested syntax regions. This allows some simplification and general improvements.
Adds a new option g:vimtex_syntax_custom_envs that allows to define syntax rules for custom environments in the same spirit as the corresponding g:vimtex_syntax_custom_cmds. refer: #2745
I'm seeing the following error when switching to this branch:
Config:
|
Thanks, I fixed both of those now. Note, though, that the latter issue is really due to you forgetting to pass the |
Ah, I see! I think creating the region name is perhaps even better. It works perfectly fine now! Perhaps the |
Thanks; I've made a minor adjustment to the docs regarding the region name. And I merged this, since it seems good enough for now :) |
Awesome, thank you very much for the feature! Works perfectly fine. |
Glad to hear it :) |
This should resolve #2745.