[gtksourceview] gtk-doc.lang: fix styles for subpatterns
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] gtk-doc.lang: fix styles for subpatterns
- Date: Fri, 14 Jan 2022 20:45:54 +0000 (UTC)
commit ebece185be5886f6c3f5c6069bb090df4ce34a85
Author: Christian Hergert <chergert redhat com>
Date: Fri Jan 14 12:40:33 2022 -0800
gtk-doc.lang: fix styles for subpatterns
The patterns must have changed because these were not mapped to the
appropriate types, meaning that if you styled them in a style-scheme
differently, you wouldn't get the highlighting you'd expect.
data/language-specs/gtk-doc.lang | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/language-specs/gtk-doc.lang b/data/language-specs/gtk-doc.lang
index fa482551..135a45bc 100644
--- a/data/language-specs/gtk-doc.lang
+++ b/data/language-specs/gtk-doc.lang
@@ -77,9 +77,9 @@
<context extend-parent="false">
<start>(([\w_]+\:\:[\w_-]+)|([\w_]+\:[\w_-]+)|([\w_]+))\:\s*$</start>
<include>
- <context sub-pattern="2" where="start" style-ref="function-name"/>
- <context sub-pattern="3" where="start" style-ref="signal-name"/>
- <context sub-pattern="4" where="start" style-ref="property-name"/>
+ <context sub-pattern="2" where="start" style-ref="signal-name"/>
+ <context sub-pattern="3" where="start" style-ref="property-name"/>
+ <context sub-pattern="4" where="start" style-ref="function-name"/>
<context ref="inline-docs-body"/>
</include>
</context>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]