[gtksourceview] rust.lang: allow styling self



commit 57a7ca504db8642b78267e52400a6c99b372a00a
Author: Christian Hergert <chergert redhat com>
Date:   Thu Dec 30 19:43:58 2021 -0800

    rust.lang: allow styling self

 data/language-specs/rust.lang | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/data/language-specs/rust.lang b/data/language-specs/rust.lang
index b29108f5..4b3a10a8 100644
--- a/data/language-specs/rust.lang
+++ b/data/language-specs/rust.lang
@@ -55,6 +55,7 @@ except according to those terms.
     <style id="macro"      name="Macro"         map-to="def:preprocessor"/>
     <style id="error"      name="Error"         map-to="def:error"/>
     <style id="lifetime"   name="Lifetime"      map-to="rust:keyword"/>
+    <style id="self"       name="Self"          map-to="rust:identifier"/>
   </styles>
 
   <definitions>
@@ -145,7 +146,7 @@ except according to those terms.
       <keyword>str</keyword>
     </context>
 
-    <context id="self" style-ref="identifier">
+    <context id="self" style-ref="self">
       <keyword>Self</keyword>
       <keyword>self</keyword>
     </context>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]