[gtksourceview] Fix sh variable-definition



commit ebadfb3970037087ef6f7ecc521312d436711cbb
Author: Garrett Regier <alias301 gmail com>
Date:   Fri Mar 26 16:20:51 2010 -0700

    Fix sh variable-definition

 gtksourceview/language-specs/sh.lang |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/language-specs/sh.lang b/gtksourceview/language-specs/sh.lang
index 6c09065..54fb3b6 100644
--- a/gtksourceview/language-specs/sh.lang
+++ b/gtksourceview/language-specs/sh.lang
@@ -185,7 +185,7 @@
     </context>
 
     <context id="variable-definition">
-      <match>(^|(?&lt;=then|else|do|export))\s*([a-zA-Z_][a-zA-Z0-9_]*)\=</match>
+      <match>(^\s*|(?&lt;=then|else|do|export)\s+)([a-zA-Z_][a-zA-Z0-9_]*)\=</match>
       <include>
         <context sub-pattern="2" style-ref="variable-definition"/>
       </include>



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