[gtksourceview] rpmspec: add support for %global macro



commit 40fb4ab14adf8bfe57d10f9bfcc5de6a09bae6d0
Author: Igor Gnatenko <ignatenko src gnome org>
Date:   Thu Jun 23 13:28:44 2016 +0200

    rpmspec: add support for %global macro
    
    References: https://bugzilla.gnome.org/show_bug.cgi?id=767974
    Signed-off-by: Igor Gnatenko <ignatenko src gnome org>
    Reviewed-by: Sébastien Wilmet <swilmet gnome org>

 data/language-specs/rpmspec.lang |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/language-specs/rpmspec.lang b/data/language-specs/rpmspec.lang
index c46095f..306ff22 100644
--- a/data/language-specs/rpmspec.lang
+++ b/data/language-specs/rpmspec.lang
@@ -47,14 +47,14 @@
   <definitions>
 
     <context id="define" style-ref="define" end-at-line-end="true">
-      <start>%define</start>
+      <start>%(?:define|global)</start>
       <include>
         <context ref="def:line-continue" ignore-style="true"/>
       </include>
     </context>
 
     <context id="conditional-define" style-ref="define" end-at-line-end="true">
-      <start>%\{\!\?.*%define</start>
+      <start>%\{\!\?.*%(?:define|global)</start>
       <end>\}</end>
       <include>
         <context ref="def:line-continue" ignore-style="true"/>


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