fix wrapped lines in mutt's header

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2009-06-09 23:59:19 -04:00
parent 7088647a3f
commit 2aeb47389a
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ rules = [
PatternRule('data', '[a-zA-Z0-9_]+'),
]
class HeaderGrammar(Grammar): rules = [PatternRule('header', '^.+:')] + rules
class HeaderGrammar(Grammar):
rules = [PatternRule('header', '^[^ ].*:')] + rules
class BodyGrammar(Grammar): rules = rules
class MuttGrammar(Grammar):
rules = [RegionRule('mutt', '^', HeaderGrammar, '^\n$', BodyGrammar, '')]