From b321269b2e3479e083502d2f3ebe106bc4a0badc Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Mon, 13 Jul 2009 15:35:55 -0400 Subject: [PATCH] fix mutt header bug --HG-- branch : pmacs2 --- mode/mutt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mode/mutt.py b/mode/mutt.py index 45a1f97..49e17fa 100644 --- a/mode/mutt.py +++ b/mode/mutt.py @@ -17,7 +17,7 @@ rules = [ ] class HeaderGrammar(Grammar): - rules = [PatternRule('header', '^[^ ].*:')] + rules + rules = [PatternRule('header', '^[^ ][^:]*:')] + rules class BodyGrammar(Grammar): rules = rules class MuttGrammar(Grammar): rules = [RegionRule('mutt', '^', HeaderGrammar, '^\n$', BodyGrammar, '')]