[gtksourceview] rst.lang: comments must match at line start



commit ed89fad7c4f6a59aaa7e750cef6c9be9afbb526c
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]