From a1199a2b4350e1b4eb6a36eafdc36ea61bd6de42 Mon Sep 17 00:00:00 2001 From: moculus Date: Wed, 12 Nov 2008 15:17:39 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- mode/rst.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mode/rst.py b/mode/rst.py index 30e665c..7f10991 100644 --- a/mode/rst.py +++ b/mode/rst.py @@ -12,8 +12,8 @@ class RSTGrammar(Grammar): rules = [ PatternRule(r'escape', r'\\.'), - PatternRule(r'bullet', r'^ *[-*+]'), - PatternRule(r'enumeration', r'^ *(?:[0-9]+|#)\.'), + PatternRule(r'bullet', r'^ *[-*+](?=$| )'), + PatternRule(r'enumeration', r'^ *(?:[0-9]+|#)\.(?=$| )'), RegionRule(r'strong_emphasis', r'\*\*', RSTString, r'\*\*'), RegionRule(r'emphasis', r'\*', RSTString, r'\*'),