parent
c034605a69
commit
b321269b2e
|
@ -17,7 +17,7 @@ rules = [
|
||||||
]
|
]
|
||||||
|
|
||||||
class HeaderGrammar(Grammar):
|
class HeaderGrammar(Grammar):
|
||||||
rules = [PatternRule('header', '^[^ ].*:')] + rules
|
rules = [PatternRule('header', '^[^ ][^:]*:')] + rules
|
||||||
class BodyGrammar(Grammar): rules = rules
|
class BodyGrammar(Grammar): rules = rules
|
||||||
class MuttGrammar(Grammar):
|
class MuttGrammar(Grammar):
|
||||||
rules = [RegionRule('mutt', '^', HeaderGrammar, '^\n$', BodyGrammar, '')]
|
rules = [RegionRule('mutt', '^', HeaderGrammar, '^\n$', BodyGrammar, '')]
|
||||||
|
|
Loading…
Reference in New Issue