[gtksourceview] rst.lang: Make directives multi-line
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] rst.lang: Make directives multi-line
- Date: Tue, 19 Oct 2021 22:30:15 +0000 (UTC)
commit b671ae8a8eb107e3fbe0f895006d17283e705a73
Author: Pierre Ossman <ossman cendio se>
Date: Fri Oct 15 17:07:01 2021 +0200
rst.lang: Make directives multi-line
data/language-specs/rst.lang | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/data/language-specs/rst.lang b/data/language-specs/rst.lang
index aa2ae735..2351d310 100644
--- a/data/language-specs/rst.lang
+++ b/data/language-specs/rst.lang
@@ -43,19 +43,23 @@
<definitions>
<context id="directive" class="no-spell-check" style-ref="directive">
- <match>^\s*\.\. \w*::.*$</match>
+ <start>^(\s*)\.\. \w*::</start>
+ <end>^(?!(\%{1@start} )|(\s*$))</end>
</context>
<context id="footnotes" style-ref="directive">
- <match>^\s*\.\. \[([0-9]+|\#|\#\w+|\*)\] </match>
+ <start>^(\s*)\.\. \[([0-9]+|\#|\#\w+|\*)\] </start>
+ <end>^(?!(\%{1@start} )|(\s*$))</end>
</context>
<context id="citation" style-ref="directive">
- <match>^\s*\.\. \[\w+\] </match>
+ <start>^(\s*)\.\. \[\w+\] </start>
+ <end>^(?!(\%{1@start} )|(\s*$))</end>
</context>
<context id="link-target" class="no-spell-check" style-ref="directive">
- <match>^\s*\.\. _.*:.*$</match>
+ <start>^(\s*)\.\. _.*:</start>
+ <end>^(?!(\%{1@start} )|(\s*$))</end>
</context>
<context id="comment" style-ref="comment">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]