[gtksourceview] rust.lang: Fix highlighting of nested multiline comments



commit c8b4218e488157a9ad5003fa0a75938ca5b10c42
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 7e469f2..bf0bd17 100644
--- a/data/language-specs/rust.lang
+++ b/data/language-specs/rust.lang
@@ -293,10 +293,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]