Hi,
thanks for the reply
On Sat, 3 Apr 2021, Charles Campbell wrote:
> I suspect that you need to get your matches contained in various groups. For
> a start, consider also trying (in ~/.vim/after/tex.vim)
> syn cluster texFoldGroup add=UrlNoSpell,AcronymNoSpell
This mostly did the trick. It now works in some cases but not everywhere, see
the minimal example below.
> You didn't provide any examples, so the above is a guess.
You are right, this is a MWE
\documentclass[a4paper]{article}
\begin{document}
SUT (SUT) [SUT] {SUT} SUT,
$SUT$
\section{A section about SUT.}
\begin{itemize}
\item SUT
\end{itemize}
\begin{figure}\caption{whatever SUT is}\end{figure}
ftp://erlang.org/doc/man/erl_tracer.html
\url{ftp://erlang.org/doc/man/erl_tracer.html}
\end{document}
in this case, the acronym SUT and the URL are correctly ignored in paragraphs
(also when followed by punctuation symbols) but not when in a command as
\section, \url or \caption. What I see is in the attached pic.
Currently, my .vim/after/syntax/tex.vim contains:
syn cluster texFoldGroup add=UrlNoSpell,AcronymNoSpell
syn match UrlNoSpell '\w\+:\/\/[^[:space:]]\+' contains=@NoSpell
syn match AcronymNoSpell '\<\(\u\|\d\)\{3,}s\?\>' contains=@NoSpell
Probably, there will be another group to add these patterns. Where can I read
all the possible groups?
Thank you
Walter
--
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5c9159c7-f395-7e36-9d75-8d6be1d11e38%40di.unimi.it.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment