[gtksourceview/gnome-3-24] rst.lang: comments must match at line start



commit 9a99be1bfd97af0c8c49da17475b4d421adfd327
Author: Christian Hergert <chergert redhat com>
Date:   Mon Sep 10 12:37:55 2018 -0700

    rst.lang: comments must match at line start
    
    Comments need to match starting from the beginning
    of the line. This ensures that the context does not
    start mid-line, such as could happen after an
    ellipsis.
    
    Fixes #19

 data/language-specs/rst.lang | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/data/language-specs/rst.lang b/data/language-specs/rst.lang
index 9fecbb8f..b7b9806b 100644
--- a/data/language-specs/rst.lang
+++ b/data/language-specs/rst.lang
@@ -54,7 +54,7 @@
     </context>
 
     <context id="comment" style-ref="comment">
-      <start>(\s*)\.\.(\s+).+$</start>
+      <start>^(\s*)\.\.(\s+).+$</start>
       <end>^(?!(\%{1@start}  \%{2@start})|(^$))</end>
     </context>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]