-
Notifications
You must be signed in to change notification settings - Fork 391
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
Support distinguishing different cases of math environment using different group #2467
Comments
Perhaps we could use something like this:
The idea behind these names is that the @clason do you have any thoughts on this? Ideas for more consistent naming, perhaps? |
Hmm, I'd prefer if the current behaviour wouldn't change (all math zones link to Otherwise the naming is sound (and better than Will you use special groups for the delimiters themselves then? |
Sorry, here's an adjusted suggestion that should make more sense:
The delimiters will still all link to
I don't think so, but I have to admit I don't know. But then, this change should make it really easy for colorscheme creators to adjust their rules, right? |
I meant, will you add
Yes, it's not hard to adapt at all; just trying to come up with possible complaints about this change. |
I don't see why not. If we link them to a common one, things will not change for anyone, except it allows more flexibility for people who might want it. Updated suggestion:
|
Notice, with these suggestions, it would be easy to check if one is inside an inline environment with |
Done; I've updated the code and the docs, as well as the related wiki entry. Let me know if there is something that is not working as expected! (I will make sure this gets some attention in the next release notes.) |
1. `md` : Update punctuation support list 2. `mdtex`: Update specific math environment distinguishing(related to lervag/vimtex#2467)
* adapt to lervag/vimtex#2467 * remove broken stuff
Use different groups for
texMathZone
s to make it possible to distinguish them. See also #2397.Here are currently supported cases (see
:help vimtex-syntax-reference
, table 3):Notice that we can't distinguish
\( Inline Math \)
and\[ Display Math \]
through, since they are bothtexMathZone
.The text was updated successfully, but these errors were encountered: