From d38ce0dd2751ebe253ccc849558c6b84199d0356 Mon Sep 17 00:00:00 2001 From: Denis Briand Date: Thu, 6 Aug 2009 15:50:44 +0400 Subject: [PATCH] Ticket #1471: mail.syntax syntax, mail.syntax: add new headers support, change some colors Signed-off-by: Stan. S. Krupoderov --- syntax/Syntax | 2 +- syntax/mail.syntax | 81 ++++++++++++++++++++++++++++++++++------------ 2 files changed, 61 insertions(+), 22 deletions(-) diff --git a/syntax/Syntax b/syntax/Syntax index 7c2d40d96..f8c3f84fe 100644 --- a/syntax/Syntax +++ b/syntax/Syntax @@ -160,7 +160,7 @@ include lua.syntax file ..\*\\.([iI][dD][lL])$ CORBA\sIDL include idl.syntax -file Don_t_match_me Mail\sfolder ^From\s +file Don_t_match_me Mail\sfolder ^(From|Return-(P|p)ath:|From:|Date:)\s include mail.syntax file \.procmailrc$ Procmail\sRC\sFile ^#/usr/bin/procmail diff --git a/syntax/mail.syntax b/syntax/mail.syntax index dee51eeb3..6ec9d6ef2 100644 --- a/syntax/mail.syntax +++ b/syntax/mail.syntax @@ -3,33 +3,72 @@ wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_01234567890.- context default spellcheck -context linestart From\s \n\n cyan black - keyword linestart From\s brightred - keyword linestart Received: brightcyan - keyword linestart Date: green +context linestart From\s \n\n cyan keyword linestart From: brightgreen - keyword linestart To: brightmagenta - keyword linestart Cc: magenta - keyword linestart Subject: brightred - keyword linestart Message-ID: red - keyword linestart In-Reply-To: yellow - keyword linestart References: yellow - keyword linestart MIME-Version: brightblue - keyword linestart Mime-Version: brightblue - keyword linestart Content-Type: brightblue - keyword linestart Content-Disposition: brightblue - keyword linestart Content-Transfer-Encoding: brightblue - keyword linestart +: brown + keyword linestart From\s brightred keyword <*@*> white keyword whole +@+ white + keyword linestart To: brightmagenta + keyword linestart Subject: brightred/Orange + keyword linestart +: brown -context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightcyan +context linestart Return-path:\s \n\n cyan + keyword linestart From: brightgreen + keyword linestart From\s brightred + keyword <*@*> white + keyword whole +@+ white + keyword linestart To: brightmagenta + keyword linestart Subject: brightred/Orange + keyword linestart +: brown + +context linestart Return-Path:\s \n\n cyan + keyword linestart From: brightgreen + keyword linestart From\s brightred + keyword <*@*> white + keyword whole +@+ white + keyword linestart To: brightmagenta + keyword linestart Subject: brightred/Orange + keyword linestart +: brown + +context linestart From:\s \n\n cyan + keyword linestart From: brightgreen + keyword linestart From\s brightred + keyword <*@*> white + keyword whole +@+ white + keyword linestart To: brightmagenta + keyword linestart Subject: brightred/Orange + keyword linestart +: brown + +context linestart Date:\s \n\n cyan + keyword linestart From: brightgreen + keyword linestart From\s brightred + keyword <*@*> white + keyword whole +@+ white + keyword linestart To: brightmagenta + keyword linestart Subject: brightred/Orange + keyword linestart +: brown + +context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightgreen +context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightred +context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightgreen +context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightred +context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightgreen +context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightred +context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightgreen +context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightred +context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightgreen +context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightred +context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightgreen +context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightred +context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightgreen +context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightred context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightgreen -context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightcyan +context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightred context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightgreen -context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightcyan +context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightred context linestart >\[\s\]>\[\s\]>\[\s\]>\[\s\]> \n brightgreen -context linestart >\[\s\]>\[\s\]>\[\s\]> \n brightcyan +context linestart >\[\s\]>\[\s\]>\[\s\]> \n brightred context linestart >\[\s\]>\[\s\]> \n brightgreen -context linestart >\[\s\]> \n brightcyan +context linestart >\[\s\]> \n brightred context linestart > \n brightgreen +