parent
c034605a69
commit
b321269b2e
|
@ -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, '')]
|
||||
|
|
Loading…
Reference in New Issue