[54447] contrib/mpvim/syntax/portfile.vim
mnick at macports.org
mnick at macports.org
Mon Jul 27 12:42:24 PDT 2009
Revision: 54447
http://trac.macports.org/changeset/54447
Author: mnick at macports.org
Date: 2009-07-27 12:42:23 -0700 (Mon, 27 Jul 2009)
Log Message:
-----------
* support for port groups
* correctly escape dot in livecheck.* and startupitem.*
Modified Paths:
--------------
contrib/mpvim/syntax/portfile.vim
Modified: contrib/mpvim/syntax/portfile.vim
===================================================================
--- contrib/mpvim/syntax/portfile.vim 2009-07-27 19:26:27 UTC (rev 54446)
+++ contrib/mpvim/syntax/portfile.vim 2009-07-27 19:42:23 UTC (rev 54447)
@@ -98,12 +98,30 @@
syn match PortfileDependsEntry "\(port\|bin\):" contained
" StartupItems
-syn match PortfileOptional "startupitem.\(start\|stop\|restart\|init\|pidfile\)"
+syn match PortfileOptional "startupitem\.\(start\|stop\|restart\|init\|pidfile\)"
" Livecheck / Distcheck
-syn match PortfileOptional "livecheck.\(check\|name\|distname\|version\|url\|regex\|md5\)"
+syn match PortfileOptional "livecheck\.\(check\|name\|distname\|version\|url\|regex\|md5\)"
syn keyword PortfileOptional distcheck.check
+" Port Groups
+" Gnustep
+syn match PortfileGroups "gnustep\.\(post_flags\|cc\)"
+syn keyword PortfileGroups variant_with_docs gnustep_layout
+syn match PortfileGroups "set_\(gnustep_\(make\|env\)\|\(system\|local\)_library\)"
+" Haskell
+syn keyword PortfileGroups haskell.setup
+" Perl5
+syn match PortfileGroups "perl5\.\(setup\|version\|bin\|lib\|archlib\)"
+" Python
+syn match PortfileGroups "python\.\(bin\|lib\|include\|pkgd\)"
+" Ruby
+syn match PortfileGroups "ruby\.\(version\|bin\|lib\|arch\|archlib\)"
+" Xcode
+syn match PortfileGroups "xcode\.\(project\|configuration\|target\|build\.settings\)"
+syn match PortfileGroups "xcode\.destroot\.\(type\|path\|settings\)"
+syn match PortfileGroups "xcode\.universal\.\(sdk\|settings\)"
+
" check whitespace, copied from python.vim
if exists("portfile_highlight_space_errors")
" trailing whitespace
@@ -138,6 +156,7 @@
hi def link PortfileDefaultVariants Identifier
hi def link PortfileDepends Keyword
hi def link PortfileDependsEntry Special
+hi def link PortfileGroups Keyword
if exists("portfile_highlight_space_errors")
hi def link PortFileSpaceError Error
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090727/f9be27d9/attachment.html>
More information about the macports-changes
mailing list