From a57c6982b76b5884531a749e15e9767b4933d914 Mon Sep 17 00:00:00 2001 From: moculus Date: Wed, 12 Nov 2008 15:16:26 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- mode/rst.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mode/rst.py b/mode/rst.py index c1f6607..30e665c 100644 --- a/mode/rst.py +++ b/mode/rst.py @@ -12,6 +12,9 @@ class RSTGrammar(Grammar): rules = [ PatternRule(r'escape', r'\\.'), + PatternRule(r'bullet', r'^ *[-*+]'), + PatternRule(r'enumeration', r'^ *(?:[0-9]+|#)\.'), + RegionRule(r'strong_emphasis', r'\*\*', RSTString, r'\*\*'), RegionRule(r'emphasis', r'\*', RSTString, r'\*'), RegionRule(r'inline_literal', r'``', RSTString, r'``'), @@ -32,9 +35,6 @@ class RSTGrammar(Grammar): PatternRule(r'option', r'^(?:--|-|/)[a-zA-Z]+(?:[ =][-a-zA-Z_]+)?'), RegionRule(r'table', r'\+-+(\+-+)*\+\n$', Grammar, r'^\n$'), - PatternRule(r'bullet', r'^ *[-*+]'), - PatternRule(r'enumeration', r'^ *(?:[0-9]+|#)\.'), - PatternRule(r'field', r'^:.+?:'), PatternRule(r'lineblock', r'^\|'),