Jumping back from inline math tag in latex
justbur opened this issue · 5 comments
With the latex code $f(x)=x^2[$] normal text $g(x)=2$
and point []
matchit jumps forward to the next $
instead of back to the opening one. Is there any way to fix this? I noticed that show-paren-mode
highlights the correct match.
I also know about the \(\)
tags, but would prefer to not have to use them. Thanks
Sorry, I don't understand your comment
I solved your problem.
I just tested my example with the latest version and it is still jumping forward from the point.
Maybe I have to set something? I am just using global-evil-matchit-mode
looks it's latex-mode
implementation is buggy so scan-sexps
fail. workaround by fallback to evil API.
4780ef4 scan-sexps buggy in latex-mode, fallback to Evil API (Chen Bin)
Thanks for report this rare bug.