[gtksourceview/gnome-3-24] rust.lang: Fix highlighting of nested multiline comments
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/gnome-3-24] rust.lang: Fix highlighting of nested multiline comments
- Date: Sun, 15 Jan 2017 12:09:42 +0000 (UTC)
commit 22c8ab132088f1fecb96fe2559f65c1892652c86
Author: Tobias Schönberg <tobias47n9e gmail com>
Date: Sun Jan 1 19:51:06 2017 +0100
rust.lang: Fix highlighting of nested multiline comments
Currently the highlighting of nested multiline comments is
escaped at the first closing tag.
This commit adds a context that allows for nested multiline
comments.
https://bugzilla.gnome.org/show_bug.cgi?id=775918
data/language-specs/rust.lang | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/data/language-specs/rust.lang b/data/language-specs/rust.lang
index 5632591..61d9997 100644
--- a/data/language-specs/rust.lang
+++ b/data/language-specs/rust.lang
@@ -294,10 +294,18 @@ except according to those terms.
</include>
</context>
+ <context id="comment-multiline-nested" style-ref="comment" class-disabled="no-spell-check"
class="comment" >
+ <start>/\*</start>
+ <end>\*/</end>
+ <include>
+ <context ref="comment-multiline-nested"/>
+ </include>
+ </context>
+
<context id="rust" class="no-spell-check">
<include>
<context ref="def:c-like-comment" style-ref="comment"/>
- <context ref="def:c-like-comment-multiline" style-ref="comment"/>
+ <context ref="comment-multiline-nested"/>
<context ref="function"/>
<context ref="type"/>
<context ref="keywords"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]