[gtksourceview] rst.lang: Don't match words with underscores as links



commit c25d8e6b41bb203b33a7bfcb9645654454f79d1d
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 f6fd216..9fecbb8 100644
--- a/data/language-specs/rst.lang
+++ b/data/language-specs/rst.lang
@@ -98,7 +98,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]