diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-03-25 21:53:48 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-03-25 21:53:48 +0000 |
commit | 68b76a69aa818e4220654244a4353ab43c1ae728 (patch) | |
tree | e7542f0a1a67a088cb8b01c7be4c699a8c203a81 /runtime/syntax/mail.vim | |
parent | a88d968da127052294354dc1e7d6ce30610e66ff (diff) | |
download | vim-git-68b76a69aa818e4220654244a4353ab43c1ae728.tar.gz |
updated for version 7.0064
Diffstat (limited to 'runtime/syntax/mail.vim')
-rw-r--r-- | runtime/syntax/mail.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/syntax/mail.vim b/runtime/syntax/mail.vim index eca30f449..a45eb61ce 100644 --- a/runtime/syntax/mail.vim +++ b/runtime/syntax/mail.vim @@ -2,7 +2,7 @@ " Language: Mail file " Previous Maintainer: Felix von Leitner <leitner@math.fu-berlin.de> " Maintainer: Gautam Iyer <gautam@math.uchicago.edu> -" Last Change: Thu 10 Feb 2005 09:46:26 AM CST +" Last Change: 2005 Mar 23 " Quit when a syntax file was already loaded if exists("b:current_syntax") @@ -36,14 +36,14 @@ syn match mailHeaderKey contained "\v(^(\> ?)*)@<=date:" syn match mailSubject contained "\v(^(\> ?)*)@<=subject:.*$" " Anything in the header between < and > is an email address -syn match mailHeaderEmail contained "<.\{-}>" +syn match mailHeaderEmail contained "<.\{-}>" contains=@NoSpell " Mail Signatures. (Begin with "-- ", end with change in quote level) syn region mailSignature keepend contains=@mailLinks,@mailQuoteExps start="^\z(\(> \?\)*\)-- $" end="^\z1$" end="^\z1\@!"me=s-1 end="^\z1\(> \?\)\+"me=s-1 " URLs start with a known protocol or www,web,w3. -syn match mailURL `\v<(((https?|ftp|gopher)://|(mailto|file|news):)[^' <>"]+|(www|web|w3)[a-z0-9_-]*\.[a-z0-9._-]+\.[^' <>"]+)[a-z0-9/]` -syn match mailEmail "\v[_=a-z\./+0-9-]+\@[a-z0-9._-]+\a{2}" +syn match mailURL `\v<(((https?|ftp|gopher)://|(mailto|file|news):)[^' <>"]+|(www|web|w3)[a-z0-9_-]*\.[a-z0-9._-]+\.[^' <>"]+)[a-z0-9/]` contains=@NoSpell +syn match mailEmail "\v[_=a-z\./+0-9-]+\@[a-z0-9._-]+\a{2}" contains=@NoSpell " Make sure quote markers in regions (header / signature) have correct color syn match mailQuoteExp1 contained "\v^(\> ?)" |