[gtksourceview/gnome-3-24] rst.lang: Don't match words with underscores as links



commit f3049b9ad9ff0729ee2d6b5b47eb713a858076fe
Author: Tobias Schönberg <tobias47n9e gmail com>
Date:   Sat Nov 4 22:48:55 2017 +0100

    rst.lang: Don't match words with underscores as links
    
    Currently words with underscores are matched as links. This commit
    adds a condition to the regex that a word boundary has to follow
    the underscore.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=789919

 data/language-specs/rst.lang |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/data/language-specs/rst.lang b/data/language-specs/rst.lang
index 5f791cd..ebeacdb 100644
--- a/data/language-specs/rst.lang
+++ b/data/language-specs/rst.lang
@@ -99,7 +99,7 @@
     </context>
 
     <context id="link" style-ref="link">
-      <match>(\S+_)|(`\b.*?\b`_)</match>
+      <match>(\S+_\b)|(`\b.*?\b`_)</match>
     </context>
 
     <context id="substitution" style-ref="substitution">


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