commit:     c1f92729082781148a27689eb983ecc3736ba387
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 29 07:15:45 2014 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Nov 29 07:15:45 2014 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/gentoo-syntax.git;a=commit;h=c1f92729

allow bracketed variables in exported functions for eclasses

X-Gentoo-Bug: 496458

---
 syntax/ebuild.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/syntax/ebuild.vim b/syntax/ebuild.vim
index 649bc47..497d743 100644
--- a/syntax/ebuild.vim
+++ b/syntax/ebuild.vim
@@ -206,7 +206,7 @@ syn keyword EbuildGnome2Keyword gnome2_scrollkeeper_update 
gnome2_pkg_postinst g
 " EXPORT_FUNCTIONS
 syn match EbuildExportFunctions /EXPORT_FUNCTIONS/ skipwhite 
nextgroup=EbuildExportFunctionsFunc,EbuildExportFunctionsFuncE
 syn match EbuildExportFunctionsFunc contained /\S\+\(\s\|$\)\@=/ skipwhite 
nextgroup=EbuildExportFunctionsFunc,EbuildExportFunctionsFuncE
-syn match EbuildExportFunctionsFuncE contained 
/\S\+\(\s\|$\)\@=\(pkg_pretend\|pkg_nofetch\|pkg_setup\|src_unpack\|src_prepare\|src_configure\|src_compile\|src_test\|src_install\|pkg_preinst\|pkg_postinst\|pkg_prerm\|pkg_postrm\|pkg_config\)\@<!/
 skipwhite nextgroup=EbuildExportFunctionsFunc,EbuildExportFunctionsFuncE
+syn match EbuildExportFunctionsFuncE contained 
/\S\+\(\s\|$\)\@=\(\${\S\+}\|pkg_pretend\|pkg_nofetch\|pkg_setup\|src_unpack\|src_prepare\|src_configure\|src_compile\|src_test\|src_install\|pkg_preinst\|pkg_postinst\|pkg_prerm\|pkg_postrm\|pkg_config\)\@<!/
 skipwhite nextgroup=EbuildExportFunctionsFunc,EbuildExportFunctionsFuncE
 
 " Eclass documentation
 syn match EclassDocumentation 
/@\(BLURB\|CODE\|DESCRIPTION\|ECLASS-VARIABLE\|ECLASS\|EXAMPLE\|FUNCTION\|MAINTAINER\|RETURN\|USAGE\|VARIABLE\):/
 contained

Reply via email to