Bram Moolenaar <[email protected]> wrote: > Arno wrote: > >> Hi, >> If I edit the attached file with >> >> set filetype=mail >> set spell >> set spelllang=fr >> >> the word "Subject" in the header file is underlined. It shouldn't because >> it's >> a header key. > > Isn't it highlighted as mailSubject? It's different from mailHeader by > default.
Lines in email headers have syntax group "mailHeaderKey" for which spell checking is disabled. But the line "Subject: yada yada yada" has syntax group "mailSubject", for which spell checking is enabled. That makes sense, except that the word "Subject" itself is a spelling mistake in most languages other than English. So the word "Subject" gets highlighted as a spelling mistake when 'spelllang' is set to fr for example. To fix it, we'd need to have a different syntax group for "Subject:" (without spelling checking) and for the actual text of the subject right after it (with spell checking). -- Dominique -- You received this message from the "vim_dev" 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
