[gtksourceview] Fix sh variable-definition
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Fix sh variable-definition
- Date: Sun, 28 Mar 2010 15:08:40 +0000 (UTC)
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>(^|(?<=then|else|do|export))\s*([a-zA-Z_][a-zA-Z0-9_]*)\=</match>
+ <match>(^\s*|(?<=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]