[gtksourceview/gtksourceview-4-8] gtk-doc.lang: fix styles for subpatterns



commit e07e406f5f55fe6cf96ff0dd4381a8b70ec2a391
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]