From 8dbdf94bf0ff83d89eeda21837f983e89063bc89 Mon Sep 17 00:00:00 2001 From: moculus Date: Wed, 12 Nov 2008 16:18:05 +0000 Subject: [PATCH] fix --HG-- branch : pmacs2 --- mode/rst.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mode/rst.py b/mode/rst.py index 7f10991..0d90a3a 100644 --- a/mode/rst.py +++ b/mode/rst.py @@ -40,8 +40,7 @@ class RSTGrammar(Grammar): PatternRule(r'lineblock', r'^\|'), RegionRule(r'blocktest', r'>>>', PythonGrammar, '^\n'), OverrideRegionRule(r'code', r'^\.\. code-block:: +(?P.+)\n$', None, r'^[^\n ]'), - RegionRule(r'literal_block', r'::\n$', Grammar, r'^[^\n ]'), - + RegionRule(r'literal_block', r'::\n$', Grammar, r'^(?=[^\n ])'), ] class RstWrapParagraph(method.WrapParagraph): @@ -55,10 +54,10 @@ class RST(mode.Fundamental): extensions = ['.rst'] grammar = RSTGrammar colors = { - 'title': ('blue', 'default', 'bold'), - 'subtitle': ('blue', 'default'), - 'field': ('green', 'default', 'bold'), - 'option': ('green', 'default', 'bold'), + 'title': ('blue', 'default', 'bold'), + 'subtitle': ('blue', 'default'), + 'field': ('green', 'default', 'bold'), + 'option': ('green', 'default', 'bold'), 'anonymous': ('blue', 'default', 'bold'), 'reference': ('blue', 'default', 'bold'), 'footnote': ('blue', 'default', 'bold'),