Feature: Add g:vimtex_syntax_custom_envs#2756
Merged
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: |
Owner
Author
|
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 |
Owner
Author
|
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. |
Owner
Author
|
Glad to hear it :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This should resolve #2745.