[54439] contrib/mpvim/syntax/portfile.vim
mnick at macports.org
mnick at macports.org
Mon Jul 27 11:15:50 PDT 2009
Revision: 54439
http://trac.macports.org/changeset/54439
Author: mnick at macports.org
Date: 2009-07-27 11:15:50 -0700 (Mon, 27 Jul 2009)
Log Message:
-----------
* escape dot in build, test and destroot phases
* fix variant description parsing
Modified Paths:
--------------
contrib/mpvim/syntax/portfile.vim
Modified: contrib/mpvim/syntax/portfile.vim
===================================================================
--- contrib/mpvim/syntax/portfile.vim 2009-07-27 18:13:32 UTC (rev 54438)
+++ contrib/mpvim/syntax/portfile.vim 2009-07-27 18:15:50 UTC (rev 54439)
@@ -67,25 +67,25 @@
syn match PortfilePhasesAA "auto\(make\|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\.\(cmd\|type\)"
+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\.\(run\|cmd\|target\)"
+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\.\(cmd\|type\|destdir\|umask\|keepdirs\|violate_mtree\)"
+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
syn keyword PortfileVariantRequires requires nextgroup=PortfileVariantName contained
syn keyword PortfileVariantConflicts conflicts nextgroup=PortfileVariantName contained
-syn keyword PortfileVariantDescription description nextgroup=PortfileGroup contained
+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 keyword PortfileOptional default_variants nextgroup=PortfileDefaultVariants skipwhite
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090727/90724878/attachment.html>
More information about the macports-changes
mailing list