[gtksourceview/gnome-3-24] rst.lang: comments must match at line start
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/gnome-3-24] rst.lang: comments must match at line start
- Date: Wed, 12 Sep 2018 11:54:22 +0000 (UTC)
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]