fix wrapped lines in mutt's header
--HG-- branch : pmacs2
This commit is contained in:
parent
7088647a3f
commit
2aeb47389a
|
@ -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, '')]
|
||||
|
|
Loading…
Reference in New Issue