Changeset 101993 for contrib/mpvim
- Timestamp:
- Jan 24, 2013, 2:26:24 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/mpvim/syntax/portfile.vim
r101992 r101993 28 28 29 29 syn match PortfileGroup "{.\+}" contained 30 syn match PortfileYesNo "\ (yes\|no\)" contained30 syn match PortfileYesNo "\%(yes\|no\)" contained 31 31 32 32 syn keyword PortfileRequired PortSystem name version maintainers 33 33 syn keyword PortfileRequired homepage master_sites platforms 34 34 syn match PortfileRequired "^categories\%(-append\|-delete\)\?" 35 syn match PortfileRequired "^\ (long_\)\?description" nextgroup=PortfileDescription skipwhite35 syn match PortfileRequired "^\%(long_\)\?description" nextgroup=PortfileDescription skipwhite 36 36 syn region PortfileDescription matchgroup=Normal start="" skip="\\$" end="$" contained 37 37 … … 41 41 syn keyword PortfileOptional replaced_by supported_archs 42 42 43 syn match PortfileOptional "checksums\ (-append\|-delete\)\?" nextgroup=PortfileChecksums skipwhite43 syn match PortfileOptional "checksums\%(-append\|-delete\)\?" nextgroup=PortfileChecksums skipwhite 44 44 syn region PortfileChecksums matchgroup=Normal start="" skip="\\$" end="$" contained contains=PortfileChecksumsType 45 45 syn keyword PortfileChecksumsType md5 sha1 rmd160 sha256 contained 46 46 47 syn match PortfilePhases "\ (pre-\|post-\)\?\(fetch\|checksum\|extract\|patch\|configure\|build\|test\|destroot\|archive\|install\|activate\)\s" contains=PortfilePrePost47 syn match PortfilePhases "\%(pre-\|post-\)\?\%(fetch\|checksum\|extract\|patch\|configure\|build\|test\|destroot\|archive\|install\|activate\)\s" contains=PortfilePrePost 48 48 49 49 " Fetch phase options 50 syn match PortfilePhasesFetch "fetch\.\ (type\|user\|password\|use_epsv\|ignore_sslcert\)"51 syn match PortfilePhasesFetch "cvs\.\ (root\|password\|tag\|date\|module\)"52 syn match PortfilePhasesFetch "svn\.\ (url\|revision\)"53 syn match PortfilePhasesFetch "git\.\ (url\|branch\)"54 syn match PortfilePhasesFetch "hg\.\ (url\|tag\)"50 syn match PortfilePhasesFetch "fetch\.\%(type\|user\|password\|use_epsv\|ignore_sslcert\)" 51 syn match PortfilePhasesFetch "cvs\.\%(root\|password\|tag\|date\|module\)" 52 syn match PortfilePhasesFetch "svn\.\%(url\|revision\)" 53 syn match PortfilePhasesFetch "git\.\%(url\|branch\)" 54 syn match PortfilePhasesFetch "hg\.\%(url\|tag\)" 55 55 56 56 " Extract phase options 57 syn match PortfilePhasesExtract "extract\.\ (suffix\|mkdir\|cmd\|only\(-append\|-delete\)\?\)"58 syn match PortfilePhasesExtract "use_\ (7z\|bzip2\|lzma\|zip\|xz\)" nextgroup=PortfileYesNo skipwhite57 syn match PortfilePhasesExtract "extract\.\%(suffix\|mkdir\|cmd\|only\%(-append\|-delete\)\?\)" 58 syn match PortfilePhasesExtract "use_\%(7z\|bzip2\|lzma\|zip\|xz\)" nextgroup=PortfileYesNo skipwhite 59 59 60 60 " Patch phase options 61 syn match PortfilePhasesPatch "patch\.\ (dir\|cmd\|args\(-append\|-delete\)\?\)"62 syn match PortfilePhasesPatch "patchfiles\ (-append\|-delete\)\?"61 syn match PortfilePhasesPatch "patch\.\%(dir\|cmd\|args\%(-append\|-delete\)\?\)" 62 syn match PortfilePhasesPatch "patchfiles\%(-append\|-delete\)\?" 63 63 64 64 " Configure phase options 65 65 syn keyword PortfilePhasesConf use_configure nextgroup=PortfileYesNo skipwhite 66 syn match PortfilePhasesConf "configure\.\ (env\|\(c\|ld\|cpp\|cxx\|objc\|f\|fc\|f90\)flags\)\(-append\|-delete\)\?"67 syn match PortfilePhasesConf "configure\.\ (pre_\|post_\)\?args\(-append\|-delete\)\?" nextgroup=PortfileConfEntries skipwhite66 syn match PortfilePhasesConf "configure\.\%(env\|\%(c\|ld\|cpp\|cxx\|objc\|f\|fc\|f90\)flags\)\%(-append\|-delete\)\?" 67 syn match PortfilePhasesConf "configure\.\%(pre_\|post_\)\?args\%(-append\|-delete\)\?" nextgroup=PortfileConfEntries skipwhite 68 68 syn region PortfileConfEntries matchgroup=Normal start="" skip="\\$" end="$" contained 69 syn match PortfilePhasesConf "configure\.\ (cc\|cpp\|cxx\|objc\|fc\|f77\|f90\|javac\|compiler\)"70 syn match PortfilePhasesConf "configure\.\ (perl\|python\|ruby\|install\|awk\|bison\)"71 syn match PortfilePhasesConf "configure\.\ (pkg_config\(_path\)\?\)"72 syn match PortfilePhasesConf "configure.universal_\ (args\|\(c\|cpp\|cxx\|ld\)flags\)"73 syn match PortfilePhasesConf "compiler\.\ (blacklist\|whitelist\|fallback\)"69 syn match PortfilePhasesConf "configure\.\%(cc\|cpp\|cxx\|objc\|fc\|f77\|f90\|javac\|compiler\)" 70 syn match PortfilePhasesConf "configure\.\%(perl\|python\|ruby\|install\|awk\|bison\)" 71 syn match PortfilePhasesConf "configure\.\%(pkg_config\%(_path\)\?\)" 72 syn match PortfilePhasesConf "configure.universal_\%(args\|\%(c\|cpp\|cxx\|ld\)flags\)" 73 syn match PortfilePhasesConf "compiler\.\%(blacklist\|whitelist\|fallback\)" 74 74 75 75 " Automake and Autoconf 76 syn match PortfilePhasesAA "use_auto\ (make\|\(re\)\?conf\)" nextgroup=PortfileYesNo skipwhite77 syn match PortfilePhasesAA "auto\ (make\|\(re\)\?conf\).\(env\|args\|dir\)"76 syn match PortfilePhasesAA "use_auto\%(make\|\%(re\)\?conf\)" nextgroup=PortfileYesNo skipwhite 77 syn match PortfilePhasesAA "auto\%(make\|\%(re\)\?conf\).\%(env\|args\|dir\)" 78 78 79 79 " Build phase options 80 syn match PortfilePhasesBuild "build\.\ (cmd\|type\|dir\)"81 syn match PortfilePhasesBuild "build\.\ (\(pre\|post\)_\)\?args"82 syn match PortfilePhasesBuild "build\.\ (target\|env\)\(-append\|-delete\)\?"80 syn match PortfilePhasesBuild "build\.\%(cmd\|type\|dir\)" 81 syn match PortfilePhasesBuild "build\.\%(pre_\|post_\)\?args" 82 syn match PortfilePhasesBuild "build\.\%(target\|env\)\%(-append\|-delete\)\?" 83 83 syn keyword PortfilePhasesBuild use_parallel_build nextgroup=PortfileYesNo skipwhite 84 84 85 85 " Test phase options 86 syn match PortfilePhasesTest "test\.\ (run\|cmd\|target\)"87 syn match PortfilePhasesTest "test\.env\ (-append\|-delete\)\?"86 syn match PortfilePhasesTest "test\.\%(run\|cmd\|target\)" 87 syn match PortfilePhasesTest "test\.env\%(-append\|-delete\)\?" 88 88 89 89 " Test destroot options 90 syn match PortfilePhasesDest "destroot\.\ (cmd\|type\|dir\|destdir\|umask\|keepdirs\|violate_mtree\)"91 syn match PortfilePhasesDest "destroot\.\ (\(pre\|post\)_\)\?args"92 syn match PortfilePhasesDest "destroot\.target\ (-append\|-delete\)\?"90 syn match PortfilePhasesDest "destroot\.\%(cmd\|type\|dir\|destdir\|umask\|keepdirs\|violate_mtree\)" 91 syn match PortfilePhasesDest "destroot\.\%(pre_\|post_\)\?args" 92 syn match PortfilePhasesDest "destroot\.target\%(-append\|-delete\)\?" 93 93 94 94 " Variants … … 99 99 syn match PortfileVariantName "[a-zA-Z0-9_]\+" contained 100 100 syn keyword PortfileOptional universal_variant nextgroup=PortfileYesNo skipwhite 101 syn match PortfileOptional "default_variants\ (-append\|-delete\)\?" nextgroup=PortfileDefaultVariants skipwhite102 syn match PortfileDefaultVariants "\ ([+\-][a-zA-Z0-9_]\+\s*\)\+" contained101 syn match PortfileOptional "default_variants\%(-append\|-delete\)\?" nextgroup=PortfileDefaultVariants skipwhite 102 syn match PortfileDefaultVariants "\%([+\-][a-zA-Z0-9_]\+\s*\)\+" contained 103 103 104 104 " Platform … … 109 109 110 110 " Dependencies 111 syn match PortfileDepends "depends_\ (\(lib\|build\|run\|fetch\|extract\)\(-append\|-delete\)\?\)" nextgroup=PortfileDependsEntries skipwhite111 syn match PortfileDepends "depends_\%(\%(lib\|build\|run\|fetch\|extract\)\%(-append\|-delete\)\?\)" nextgroup=PortfileDependsEntries skipwhite 112 112 syn region PortfileDependsEntries matchgroup=Normal start="" skip="\\$" end="$" contains=PortfileDependsEntry contained 113 syn match PortfileDependsEntry "\ (port\|bin\|path\|lib\):" contained113 syn match PortfileDependsEntry "\%(port\|bin\|path\|lib\):" contained 114 114 115 115 " StartupItems 116 syn match PortfileStartupPid "\ (none\|auto\|clean\|manual\)" contained117 syn match PortfileOptional "startupitem\.\ (start\|stop\|restart\|init\|executable\|logfile\)"118 syn match PortfileOptional "startupitem\.\ (create\|logevents\|netchange\)" nextgroup=PortfileYesNo skipwhite116 syn match PortfileStartupPid "\%(none\|auto\|clean\|manual\)" contained 117 syn match PortfileOptional "startupitem\.\%(start\|stop\|restart\|init\|executable\|logfile\)" 118 syn match PortfileOptional "startupitem\.\%(create\|logevents\|netchange\)" nextgroup=PortfileYesNo skipwhite 119 119 syn match PortfileOptional "startupitem\.pidfile" nextgroup=PortfileStartupPid skipwhite 120 120 121 121 " Livecheck / Distcheck 122 syn match PortfileOptional "livecheck\.\ (type\|name\|distname\|version\|url\|regex\|md5\)"122 syn match PortfileOptional "livecheck\.\%(type\|name\|distname\|version\|url\|regex\|md5\)" 123 123 syn keyword PortfileOptional distcheck.check 124 124 … … 129 129 130 130 " App 131 syn match PortfileGroups "app\.\ (create\|name\|executable\|icon\|short_version_string\|version\|identifier\)"131 syn match PortfileGroups "app\.\%(create\|name\|executable\|icon\|short_version_string\|version\|identifier\)" 132 132 133 133 " Archcheck … … 138 138 139 139 " crossbinutils 140 syn match PortfileGroups "crossbinutils\.\ (target\|setup\)"140 syn match PortfileGroups "crossbinutils\.\%(target\|setup\)" 141 141 142 142 " crossgcc 143 syn match PortfileGroups "crossgcc\.\ (target\|setup\|setup_libc\)"143 syn match PortfileGroups "crossgcc\.\%(target\|setup\|setup_libc\)" 144 144 145 145 " github 146 syn match PortfileGroups "github\.\ (author\|project\|version\|tag_prefix\|homepage\|raw\|master_sites\|tarball_from\|setup\)"146 syn match PortfileGroups "github\.\%(author\|project\|version\|tag_prefix\|homepage\|raw\|master_sites\|tarball_from\|setup\)" 147 147 148 148 " Gnustep 149 syn match PortfileGroups "gnustep\.\ (post_flags\|cc\)"149 syn match PortfileGroups "gnustep\.\%(post_flags\|cc\)" 150 150 syn keyword PortfileGroups variant_with_docs gnustep_layout 151 syn match PortfileGroups "set_\ (gnustep_\(make\|env\)\|\(system\|local\)_library\)"151 syn match PortfileGroups "set_\%(gnustep_\%(make\|env\)\|\%(system\|local\)_library\)" 152 152 153 153 " Haskell … … 155 155 156 156 " hocbinding 157 syn match PortfileGroups "hocbinding\.\ (framework\|deps\|setup\)"157 syn match PortfileGroups "hocbinding\.\%(framework\|deps\|setup\)" 158 158 159 159 " hunspelldict 160 syn match PortfileGroups "hunspelldict\.\ (locale\|setup\)"160 syn match PortfileGroups "hunspelldict\.\%(locale\|setup\)" 161 161 162 162 " KDE 4, versions 1.0 and 1.1 … … 164 164 165 165 " muniversal 166 syn match PortfileGroups "merger_configure_\ (env\|args\|compiler\|cppflags\|cflags\|cxxflags\|objcflags\|ldflags\)"167 syn match PortfileGroups "merger_build_\ (env\|args\)"168 syn match PortfileGroups "merger_\ (host\|arch_\(flag\|compiler\)\|destroot_env\|dont_diff\|must_run_binaries\|no_3_archs\)"166 syn match PortfileGroups "merger_configure_\%(env\|args\|compiler\|cppflags\|cflags\|cxxflags\|objcflags\|ldflags\)" 167 syn match PortfileGroups "merger_build_\%(env\|args\)" 168 syn match PortfileGroups "merger_\%(host\|arch_\%(flag\|compiler\)\|destroot_env\|dont_diff\|must_run_binaries\|no_3_archs\)" 169 169 syn match PortfileGroups "universal_archs_supported" 170 170 … … 177 177 178 178 " octave 179 syn match PortfileGroups "octave\.\ (module\|setup\)"179 syn match PortfileGroups "octave\.\%(module\|setup\)" 180 180 181 181 " PEAR 182 syn match PortfileGroups "pear\.\ (env\|configure\.pre_args\|destroot\|installer\|sourceroot\|instpath\|pearpath\|cmd-pear\|cmd-phar\|cmd-php\|channel\|packagexml\|package\|packagefile\|setup\)"182 syn match PortfileGroups "pear\.\%(env\|configure\.pre_args\|destroot\|installer\|sourceroot\|instpath\|pearpath\|cmd-pear\|cmd-phar\|cmd-php\|channel\|packagexml\|package\|packagefile\|setup\)" 183 183 184 184 " Perl5 185 syn match PortfileGroups "perl5\.\ (setup\|branches\|default_branch\|version\|major\|arch\|bin\|lib\|bindir\|archlib\)"185 syn match PortfileGroups "perl5\.\%(setup\|branches\|default_branch\|version\|major\|arch\|bin\|lib\|bindir\|archlib\)" 186 186 187 187 " PHP 1.0 188 syn match PortfileGroups "php\.\ (branch\(es\)\?\|build_dirs\|default_branch\|extension_ini\|extensions\|rootname\|type\|setup\)"189 syn match PortfileGroups "php\.\ (config\|extension_dir\|ini\(_dir\)\?\|ize\|suffix\)"188 syn match PortfileGroups "php\.\%(branch\%(es\)\?\|build_dirs\|default_branch\|extension_ini\|extensions\|rootname\|type\|setup\)" 189 syn match PortfileGroups "php\.\%(config\|extension_dir\|ini\%(_dir\)\?\|ize\|suffix\)" 190 190 " PHP 1.1 (only adding those not already present in 1.0) 191 syn match PortfileGroups "php\.\ (rootname\|create_subports\|extensions\.zend\|build_dirs\|add_port_code\)"192 syn match PortfileGroups "php\.\ (pecl\(_livecheck_stable\)\?\|pecl\.\(name\|prerelease\)\)"191 syn match PortfileGroups "php\.\%(rootname\|create_subports\|extensions\.zend\|build_dirs\|add_port_code\)" 192 syn match PortfileGroups "php\.\%(pecl\%(_livecheck_stable\)\?\|pecl\.\%(name\|prerelease\)\)" 193 193 194 194 " PHP5 extension 195 syn match PortfileGroups "php5extension\.\ (setup\|build_dirs\|extensions\|extension_dir\|ini\|inidir\|php_ini\|phpize\|type\|source\)"195 syn match PortfileGroups "php5extension\.\%(setup\|build_dirs\|extensions\|extension_dir\|ini\|inidir\|php_ini\|phpize\|type\|source\)" 196 196 197 197 " PHP5 PEAR 198 syn match PortfileGroups "php5pear\.\ (env\|configure\.pre_args\|destroot\|installer\|sourceroot\|instpath\|pearpath\|cmd-\(pear\|phar\|php\)\|channel\|packagexml\|package\|packagefile\|setup\)"198 syn match PortfileGroups "php5pear\.\%(env\|configure\.pre_args\|destroot\|installer\|sourceroot\|instpath\|pearpath\|cmd-\%(pear\|phar\|php\)\|channel\|packagexml\|package\|packagefile\|setup\)" 199 199 200 200 " Pure … … 202 202 203 203 " Python 204 syn match PortfileGroups "python\.\ (versions\|version\|default_version\|branch\|prefix\|bin\|lib\|libdir\|include\|pkgd\|add_archflags\|set_compiler\|link_binaries\(_suffix\)\?\)"204 syn match PortfileGroups "python\.\%(versions\|version\|default_version\|branch\|prefix\|bin\|lib\|libdir\|include\|pkgd\|add_archflags\|set_compiler\|link_binaries\%(_suffix\)\?\)" 205 205 " I'm not documenting the Python{24,25,26,27,31,32} groups. Don't use them. 206 206 207 207 " Qt4 208 syn match PortfileGroups "qt_\ (name\|dir\|qmake_spec\|cmake_defines\|arch_types\)"209 syn match PortfileGroups "qt_\ (qmake\|moc\|uic\|lrelease\)_cmd"210 syn match PortfileGroups "qt_\ (docs\|plugins\|mkspecs\|imports\|includes\|libs\|frameworks\|bins\|apps\|data\|translations\|sysconf\|examples\|demos\|cmake_module\)_dir"208 syn match PortfileGroups "qt_\%(name\|dir\|qmake_spec\|cmake_defines\|arch_types\)" 209 syn match PortfileGroups "qt_\%(qmake\|moc\|uic\|lrelease\)_cmd" 210 syn match PortfileGroups "qt_\%(docs\|plugins\|mkspecs\|imports\|includes\|libs\|frameworks\|bins\|apps\|data\|translations\|sysconf\|examples\|demos\|cmake_module\)_dir" 211 211 212 212 " Ruby 213 syn match PortfileGroups "ruby\.\ (version\|bin\|rdoc\|gem\|lib\|arch\|archlib\|setup\)"213 syn match PortfileGroups "ruby\.\%(version\|bin\|rdoc\|gem\|lib\|arch\|archlib\|setup\)" 214 214 215 215 " Select 216 syn match PortfileGroups "select\.\ (group\|file\)"216 syn match PortfileGroups "select\.\%(group\|file\)" 217 217 218 218 " TeX Live 219 syn match PortfileGroups "texlive\.\ (exclude\|binaries\|formats\|languages\|maps\|forceupdatecnf\|use_mktexlsr\(_on_deactivate\)\?\|texmfport\)"219 syn match PortfileGroups "texlive\.\%(exclude\|binaries\|formats\|languages\|maps\|forceupdatecnf\|use_mktexlsr\%(_on_deactivate\)\?\|texmfport\)" 220 220 221 221 " X11 Font … … 223 223 224 224 " Xcode 225 syn match PortfileGroups "xcode\.\ (project\|configuration\|target\|build\.settings\)"226 syn match PortfileGroups "xcode\.destroot\.\ (type\|path\|settings\)"227 syn match PortfileGroups "xcode\.universal\.\ (sdk\|settings\)"225 syn match PortfileGroups "xcode\.\%(project\|configuration\|target\|build\.settings\)" 226 syn match PortfileGroups "xcode\.destroot\.\%(type\|path\|settings\)" 227 syn match PortfileGroups "xcode\.universal\.\%(sdk\|settings\)" 228 228 229 229 " Xcode version … … 231 231 232 232 " Zope 233 syn match PortfileGroups "zope\.\ (need_subdir\|setup\)"233 syn match PortfileGroups "zope\.\%(need_subdir\|setup\)" 234 234 235 235 " End of PortGroups
Note: See TracChangeset
for help on using the changeset viewer.