[gtksourceview] rust.lang: add indirect style for lifetime
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] rust.lang: add indirect style for lifetime
- Date: Fri, 31 Dec 2021 04:03:26 +0000 (UTC)
commit 8eb97c096944f64353e49157b5a7754c5a73655a
Author: Christian Hergert <chergert redhat com>
Date: Thu Dec 30 19:22:17 2021 -0800
rust.lang: add indirect style for lifetime
This allows style schemes to alter the style with rust:lifetime and treat
them differently than keywords.
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 832bb532..b29108f5 100644
--- a/data/language-specs/rust.lang
+++ b/data/language-specs/rust.lang
@@ -54,6 +54,7 @@ except according to those terms.
<style id="attribute" name="Attribute" map-to="def:preprocessor"/>
<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"/>
</styles>
<definitions>
@@ -223,7 +224,7 @@ except according to those terms.
</match>
</context>
- <context id="lifetime" style-ref="keyword">
+ <context id="lifetime" style-ref="lifetime">
<match extended="true">
'\%{ident}
</match>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]