[54444] contrib/mpvim/syntax/portfile.vim
mnick at macports.org
mnick at macports.org
Mon Jul 27 11:41:35 PDT 2009
Revision: 54444
http://trac.macports.org/changeset/54444
Author: mnick at macports.org
Date: 2009-07-27 11:41:35 -0700 (Mon, 27 Jul 2009)
Log Message:
-----------
fix wrong usage of * where ? should have been used
Modified Paths:
--------------
contrib/mpvim/syntax/portfile.vim
Modified: contrib/mpvim/syntax/portfile.vim
===================================================================
--- contrib/mpvim/syntax/portfile.vim 2009-07-27 18:30:32 UTC (rev 54443)
+++ contrib/mpvim/syntax/portfile.vim 2009-07-27 18:41:35 UTC (rev 54444)
@@ -36,7 +36,7 @@
syn region PortfileChecksums matchgroup=Normal start="" skip="\\$" end="$" contained contains=PortfileChecksumsType
syn keyword PortfileChecksumsType md5 sha1 rmd160 contained
-syn match PortfilePhases "\(\(pre\|post\)\-\)*\(fetch\|checksum\|extract\|patch\|configure\|build\|test\|destroot\|archive\|install\|activate\)\s" contains=PortfilePrePost
+syn match PortfilePhases "\(\(pre\|post\)\-\)\?\(fetch\|checksum\|extract\|patch\|configure\|build\|test\|destroot\|archive\|install\|activate\)\s" contains=PortfilePrePost
" Fetch phase options
syn match PortfilePhasesFetch "fetch\.\(type\|user\|password\|use_epsv\|ignore_sllcert\)"
@@ -46,41 +46,41 @@
syn match PortfilePhasesFetch "hg\.\(url\|tag\)"
" Extract phase options
-syn match PortfilePhasesExtract "extract\.\(suffix\|mkdir\|cmd\|only\(\-\(append\|delete\)\)*\)"
+syn match PortfilePhasesExtract "extract\.\(suffix\|mkdir\|cmd\|only\(\-\(append\|delete\)\)\?\)"
syn match PortfilePhasesExtract "use_\(7z\|bzip2\|lzma\|zip\)" nextgroup=PortfileYesNo skipwhite
" Patch phase options
-syn match PortfilePhasesPatch "patch\.\(dir\|cmd\|args\(\-\(append\|delete\)\)*\)"
-syn match PortfilePhasesPatch "patchfiles\(\-\(append\|delete\)\)*"
+syn match PortfilePhasesPatch "patch\.\(dir\|cmd\|args\(\-\(append\|delete\)\)\?\)"
+syn match PortfilePhasesPatch "patchfiles\(\-\(append\|delete\)\)\?"
" Configure phase options
syn keyword PortfilePhasesConf use_configure nextgroup=PortfileYesNo skipwhite
-syn match PortfilePhasesConf "configure\.\(env\|\(c\|ld\|cpp\|cxx\|objc\|f\|fc\|f90\)flags\)\(-\(append\|delete\)\)*"
-syn match PortfilePhasesConf "configure\.\(\(pre\|post\)\-\)*args\(-\(\append\|delete\)\)" nextgroup=PortfileConfEntries skipwhite
+syn match PortfilePhasesConf "configure\.\(env\|\(c\|ld\|cpp\|cxx\|objc\|f\|fc\|f90\)flags\)\(-\(append\|delete\)\)\?"
+syn match PortfilePhasesConf "configure\.\(\(pre\|post\)\-\)\?args\(-\(\append\|delete\)\)" nextgroup=PortfileConfEntries skipwhite
syn region PortfileConfEntries matchgroup=Normal start="" skip="\\$" end="$" contained
syn match PortfilePhasesConf "configure\.\(cc\|cpp\|cxx\|objc\|fc\|f77\|f90\|javac\|compiler\)"
syn match PortfilePhasesConf "configure\.\(perl\|python\|ruby\|install\|awk\|bison\)"
-syn match PortfilePhasesConf "configure\.\(pkg_config\(_path\)*\)"
+syn match PortfilePhasesConf "configure\.\(pkg_config\(_path\)\?\)"
syn match PortfilePhasesConf "configure.universal_\(args\|\(c\|cpp\|cxx\|ld\)flags\)"
" Automake and Autoconf
-syn match PortfilePhasesAA "use_auto\(make\|\(re\)*conf\)" nextgroup=PortfileYesNo skipwhite
-syn match PortfilePhasesAA "auto\(make\|\(re\)*conf\).\(env\|args\|dir\)"
+syn match PortfilePhasesAA "use_auto\(make\|\(re\)\?conf\)" nextgroup=PortfileYesNo skipwhite
+syn match PortfilePhasesAA "auto\(make\|\(re\)\?conf\).\(env\|args\|dir\)"
" Build phase options
syn match PortfilePhasesBuild "build\.\(cmd\|type\)"
-syn match PortfilePhasesBuild "build\.\(\(pre\|post\)_\)*args"
-syn match PortfilePhasesBuild "build\.\(target\|env\)\(-\(append\|delete\)\)*"
+syn match PortfilePhasesBuild "build\.\(\(pre\|post\)_\)\?args"
+syn match PortfilePhasesBuild "build\.\(target\|env\)\(-\(append\|delete\)\)\?"
syn keyword PortfilePhasesBuild use_parallel_build nextgroup=PortfileYesNo skipwhite
" Test phase options
syn match PortfilePhasesTest "test\.\(run\|cmd\|target\)"
-syn match PortfilePhasesTest "test\.env\(-\(append\|delete\)\)*"
+syn match PortfilePhasesTest "test\.env\(-\(append\|delete\)\)\?"
" Test destroot options
syn match PortfilePhasesDest "destroot\.\(cmd\|type\|destdir\|umask\|keepdirs\|violate_mtree\)"
-syn match PortfilePhasesDest "destroot\.\(\(pre\|post\)_\)*args"
-syn match PortfilePhasesDest "destroot\.target\(-\(append\|delete\)\)*"
+syn match PortfilePhasesDest "destroot\.\(\(pre\|post\)_\)\?args"
+syn match PortfilePhasesDest "destroot\.target\(-\(append\|delete\)\)\?"
" Variants
syn region PortfileVariant matchgroup=Keyword start="^variant" skip="\\$" end="$" contains=PortfileVariantName,PortfileVariantRequires,PortfileVariantDescription,PortfileVariantConflicts skipwhite
@@ -89,11 +89,11 @@
syn keyword PortfileVariantDescription description nextgroup=PortfileGroup contained skipwhite
syn match PortfileVariantName "[a-zA-Z0-9_]\+" contained
syn keyword PortfileOptional universal_variant nextgroup=PortfileYesNo skipwhite
-syn match PortfileOptional "default_variants\(-\(append\|delete\)\)*" nextgroup=PortfileDefaultVariants skipwhite
+syn match PortfileOptional "default_variants\(-\(append\|delete\)\)\?" nextgroup=PortfileDefaultVariants skipwhite
syn match PortfileDefaultVariants "\([+|\-][a-zA-Z0-9_]\+\s*\)\+" contained
" Dependencies
-syn match PortfileDepends "depends_\(\(lib\|build\|run\)\(-\(append\|delete\)\)*\)" nextgroup=PortfileDependsEntries skipwhite
+syn match PortfileDepends "depends_\(\(lib\|build\|run\)\(-\(append\|delete\)\)\?\)" nextgroup=PortfileDependsEntries skipwhite
syn region PortfileDependsEntries matchgroup=Normal start="" skip="\\$" end="$" contains=PortfileDependsEntry contained
syn match PortfileDependsEntry "\(port\|bin\):" contained
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090727/ea2b991c/attachment.html>
More information about the macports-changes
mailing list