Changeset 101674 for contrib/mpvim


Ignore:
Timestamp:
Jan 16, 2013, 10:57:09 PM (11 years ago)
Author:
larryv@…
Message:

mpvim: Add modelines; reindent and retab.

Location:
contrib/mpvim
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • contrib/mpvim/compiler/portfile.vim

    r54820 r101674  
     1" vim:fenc=utf-8:et:sw=4:ts=4:sts=4
     2
    13" Vim compiler file
    2 " Author:       Maximilian Nickel <mnick@macports.org>
     4" Author: Maximilian Nickel <mnick@macports.org>
    35
    46if exists("current_compiler")
    5         finish
     7    finish
    68endif
    79let current_compiler = "portfile"
  • contrib/mpvim/ftdetect/macports.vim

    r54201 r101674  
    11" Portfile
    2 au BufNewFile,BufRead Portfile  set filetype=portfile
     2au BufNewFile,BufRead Portfile set filetype=portfile
    33au FileType portfile compiler portfile
  • contrib/mpvim/syntax/portfile.vim

    r100584 r101674  
     1" vim:fenc=utf-8:et:sw=4:ts=4:sts=4
     2
    13" Vim syntax file
    2 " Language:     MacPorts Portfiles
    3 " Maintainer:   Maximilian Nickel <mnick@macports.org>
     4" Language: MacPorts Portfiles
     5" Maintainer: Maximilian Nickel <mnick@macports.org>
    46"
    57
    68if &compatible || v:version < 603
    7         finish
     9    finish
    810endif
    911
    1012if exists("b:current_syntax")
    11         finish
     13    finish
    1214endif
    1315
    1416" Disable whitespace error highlight if variable is not set
    1517if !exists("g:portfile_highlight_space_errors")
    16         let g:portfile_highlight_space_errors=0
     18    let g:portfile_highlight_space_errors=0
    1719endif
    1820
     
    2527setlocal iskeyword+=-
    2628
    27 syn match PortfileGroup                 "{.\+}" contained
    28 syn match PortfileYesNo                 "\(yes\|no\)" contained
    29 
    30 syn keyword PortfileRequired    PortSystem name version maintainers
    31 syn keyword PortfileRequired    homepage master_sites categories platforms
    32 syn match PortfileRequired              "^\(long_\)\?description" nextgroup=PortfileDescription skipwhite
    33 syn region PortfileDescription  matchgroup=Normal start="" skip="\\$" end="$" contained
    34 
    35 syn keyword PortfileOptional    PortGroup epoch revision worksrcdir distname
    36 syn keyword PortfileOptional    use_automake use_autoconf use_configure
    37 syn keyword PortfileOptional    patch_sites distfiles dist_subdir license conflicts
    38 syn keyword PortfileOptional    replaced_by supported_archs
    39 
    40 syn match  PortfileOptional     "checksums\(\-\(append\|delete\)\)\?" nextgroup=PortfileChecksums skipwhite
    41 syn region PortfileChecksums    matchgroup=Normal start="" skip="\\$" end="$" contained contains=PortfileChecksumsType
     29syn match PortfileGroup         "{.\+}" contained
     30syn match PortfileYesNo         "\(yes\|no\)" contained
     31
     32syn keyword PortfileRequired    PortSystem name version maintainers
     33syn keyword PortfileRequired    homepage master_sites categories platforms
     34syn match PortfileRequired      "^\(long_\)\?description" nextgroup=PortfileDescription skipwhite
     35syn region PortfileDescription  matchgroup=Normal start="" skip="\\$" end="$" contained
     36
     37syn keyword PortfileOptional    PortGroup epoch revision worksrcdir distname
     38syn keyword PortfileOptional    use_automake use_autoconf use_configure
     39syn keyword PortfileOptional    patch_sites distfiles dist_subdir license conflicts
     40syn keyword PortfileOptional    replaced_by supported_archs
     41
     42syn match  PortfileOptional     "checksums\(\-\(append\|delete\)\)\?" nextgroup=PortfileChecksums skipwhite
     43syn region PortfileChecksums    matchgroup=Normal start="" skip="\\$" end="$" contained contains=PortfileChecksumsType
    4244syn keyword PortfileChecksumsType md5 sha1 rmd160 sha256 contained
    4345
    44 syn match PortfilePhases                "\(\(pre\|post\)\-\)\?\(fetch\|checksum\|extract\|patch\|configure\|build\|test\|destroot\|archive\|install\|activate\)\s" contains=PortfilePrePost
     46syn match PortfilePhases        "\(\(pre\|post\)\-\)\?\(fetch\|checksum\|extract\|patch\|configure\|build\|test\|destroot\|archive\|install\|activate\)\s" contains=PortfilePrePost
    4547
    4648" Fetch phase options
    4749syn match PortfilePhasesFetch   "fetch\.\(type\|user\|password\|use_epsv\|ignore_sslcert\)"
    48 syn match PortfilePhasesFetch   "cvs\.\(root\|password\|tag\|date\|module\)"
    49 syn match PortfilePhasesFetch   "svn\.\(url\|revision\)"
    50 syn match PortfilePhasesFetch   "git\.\(url\|branch\)"
    51 syn match PortfilePhasesFetch   "hg\.\(url\|tag\)"
     50syn match PortfilePhasesFetch   "cvs\.\(root\|password\|tag\|date\|module\)"
     51syn match PortfilePhasesFetch   "svn\.\(url\|revision\)"
     52syn match PortfilePhasesFetch   "git\.\(url\|branch\)"
     53syn match PortfilePhasesFetch   "hg\.\(url\|tag\)"
    5254
    5355" Extract phase options
     
    5658
    5759" Patch phase options
    58 syn match PortfilePhasesPatch   "patch\.\(dir\|cmd\|args\(\-\(append\|delete\)\)\?\)"
    59 syn match PortfilePhasesPatch   "patchfiles\(\-\(append\|delete\)\)\?"
     60syn match PortfilePhasesPatch   "patch\.\(dir\|cmd\|args\(\-\(append\|delete\)\)\?\)"
     61syn match PortfilePhasesPatch   "patchfiles\(\-\(append\|delete\)\)\?"
    6062
    6163" Configure phase options
    62 syn keyword PortfilePhasesConf  use_configure nextgroup=PortfileYesNo skipwhite
    63 syn match PortfilePhasesConf    "configure\.\(env\|\(c\|ld\|cpp\|cxx\|objc\|f\|fc\|f90\)flags\)\(-\(append\|delete\)\)\?"
    64 syn match PortfilePhasesConf    "configure\.\(\(pre\|post\)\-\)\?args\(-\(\append\|delete\)\)\?" nextgroup=PortfileConfEntries skipwhite
    65 syn region PortfileConfEntries  matchgroup=Normal start="" skip="\\$" end="$" contained
    66 syn match PortfilePhasesConf    "configure\.\(cc\|cpp\|cxx\|objc\|fc\|f77\|f90\|javac\|compiler\)"
    67 syn match PortfilePhasesConf    "configure\.\(perl\|python\|ruby\|install\|awk\|bison\)"
    68 syn match PortfilePhasesConf    "configure\.\(pkg_config\(_path\)\?\)"
    69 syn match PortfilePhasesConf    "configure.universal_\(args\|\(c\|cpp\|cxx\|ld\)flags\)"
    70 syn match PortfilePhasesConf    "compiler\.\(blacklist\|whitelist\|fallback\)"
     64syn keyword PortfilePhasesConf  use_configure nextgroup=PortfileYesNo skipwhite
     65syn match PortfilePhasesConf    "configure\.\(env\|\(c\|ld\|cpp\|cxx\|objc\|f\|fc\|f90\)flags\)\(-\(append\|delete\)\)\?"
     66syn match PortfilePhasesConf    "configure\.\(\(pre\|post\)\-\)\?args\(-\(\append\|delete\)\)\?" nextgroup=PortfileConfEntries skipwhite
     67syn region PortfileConfEntries  matchgroup=Normal start="" skip="\\$" end="$" contained
     68syn match PortfilePhasesConf    "configure\.\(cc\|cpp\|cxx\|objc\|fc\|f77\|f90\|javac\|compiler\)"
     69syn match PortfilePhasesConf    "configure\.\(perl\|python\|ruby\|install\|awk\|bison\)"
     70syn match PortfilePhasesConf    "configure\.\(pkg_config\(_path\)\?\)"
     71syn match PortfilePhasesConf    "configure.universal_\(args\|\(c\|cpp\|cxx\|ld\)flags\)"
     72syn match PortfilePhasesConf    "compiler\.\(blacklist\|whitelist\|fallback\)"
    7173
    7274" Automake and Autoconf
    73 syn match PortfilePhasesAA              "use_auto\(make\|\(re\)\?conf\)" nextgroup=PortfileYesNo skipwhite
    74 syn match PortfilePhasesAA              "auto\(make\|\(re\)\?conf\).\(env\|args\|dir\)"
     75syn match PortfilePhasesAA      "use_auto\(make\|\(re\)\?conf\)" nextgroup=PortfileYesNo skipwhite
     76syn match PortfilePhasesAA      "auto\(make\|\(re\)\?conf\).\(env\|args\|dir\)"
    7577
    7678" Build phase options
    77 syn match PortfilePhasesBuild   "build\.\(cmd\|type\|dir\)"
    78 syn match PortfilePhasesBuild   "build\.\(\(pre\|post\)_\)\?args"
    79 syn match PortfilePhasesBuild   "build\.\(target\|env\)\(-\(append\|delete\)\)\?"
     79syn match PortfilePhasesBuild   "build\.\(cmd\|type\|dir\)"
     80syn match PortfilePhasesBuild   "build\.\(\(pre\|post\)_\)\?args"
     81syn match PortfilePhasesBuild   "build\.\(target\|env\)\(-\(append\|delete\)\)\?"
    8082syn keyword PortfilePhasesBuild use_parallel_build nextgroup=PortfileYesNo skipwhite
    8183
    8284" Test phase options
    83 syn match PortfilePhasesTest    "test\.\(run\|cmd\|target\)"
    84 syn match PortfilePhasesTest    "test\.env\(-\(append\|delete\)\)\?"
     85syn match PortfilePhasesTest    "test\.\(run\|cmd\|target\)"
     86syn match PortfilePhasesTest    "test\.env\(-\(append\|delete\)\)\?"
    8587
    8688" Test destroot options
    87 syn match PortfilePhasesDest    "destroot\.\(cmd\|type\|dir\|destdir\|umask\|keepdirs\|violate_mtree\)"
    88 syn match PortfilePhasesDest    "destroot\.\(\(pre\|post\)_\)\?args"
    89 syn match PortfilePhasesDest    "destroot\.target\(-\(append\|delete\)\)\?"
     89syn match PortfilePhasesDest    "destroot\.\(cmd\|type\|dir\|destdir\|umask\|keepdirs\|violate_mtree\)"
     90syn match PortfilePhasesDest    "destroot\.\(\(pre\|post\)_\)\?args"
     91syn match PortfilePhasesDest    "destroot\.target\(-\(append\|delete\)\)\?"
    9092
    9193" Variants
    92 syn region PortfileVariant                              matchgroup=Keyword start="^variant" skip="\\$" end="$" contains=PortfileVariantName,PortfileVariantRequires,PortfileVariantDescription,PortfileVariantConflicts skipwhite
    93 syn keyword PortfileVariantRequires     requires nextgroup=PortfileVariantName contained
    94 syn keyword PortfileVariantConflicts    conflicts nextgroup=PortfileVariantName contained
    95 syn keyword PortfileVariantDescription  description nextgroup=PortfileGroup contained skipwhite
    96 syn match PortfileVariantName                   "[a-zA-Z0-9_]\+" contained
    97 syn keyword PortfileOptional                    universal_variant nextgroup=PortfileYesNo skipwhite
    98 syn match PortfileOptional                              "default_variants\(-\(append\|delete\)\)\?" nextgroup=PortfileDefaultVariants skipwhite
    99 syn match PortfileDefaultVariants               "\([+|\-][a-zA-Z0-9_]\+\s*\)\+" contained
     94syn region PortfileVariant              matchgroup=Keyword start="^variant" skip="\\$" end="$" contains=PortfileVariantName,PortfileVariantRequires,PortfileVariantDescription,PortfileVariantConflicts skipwhite
     95syn keyword PortfileVariantRequires     requires nextgroup=PortfileVariantName contained
     96syn keyword PortfileVariantConflicts    conflicts nextgroup=PortfileVariantName contained
     97syn keyword PortfileVariantDescription  description nextgroup=PortfileGroup contained skipwhite
     98syn match PortfileVariantName           "[a-zA-Z0-9_]\+" contained
     99syn keyword PortfileOptional            universal_variant nextgroup=PortfileYesNo skipwhite
     100syn match PortfileOptional              "default_variants\(-\(append\|delete\)\)\?" nextgroup=PortfileDefaultVariants skipwhite
     101syn match PortfileDefaultVariants       "\([+|\-][a-zA-Z0-9_]\+\s*\)\+" contained
    100102
    101103" Platform
    102 syn match PortfilePlatform                              "platform" nextgroup=PortfilePlatformName skipwhite
    103 syn match PortfilePlatformName                  "[a-z][a-zA-Z0-9_]\+" nextgroup=PortfilePlatformVersion contained skipwhite
    104 syn match PortfilePlatformVersion               "[0-9]\+" nextgroup=PortfilePlatformArch contained skipwhite
    105 syn match PortfilePlatformArch                  "[a-z][a-zA-Z0-9_]\+" contained
     104syn match PortfilePlatform          "platform" nextgroup=PortfilePlatformName skipwhite
     105syn match PortfilePlatformName      "[a-z][a-zA-Z0-9_]\+" nextgroup=PortfilePlatformVersion contained skipwhite
     106syn match PortfilePlatformVersion   "[0-9]\+" nextgroup=PortfilePlatformArch contained skipwhite
     107syn match PortfilePlatformArch      "[a-z][a-zA-Z0-9_]\+" contained
    106108
    107109" Dependencies
    108 syn match PortfileDepends                       "depends_\(\(lib\|build\|run\|fetch\|extract\)\(-\(append\|delete\)\)\?\)" nextgroup=PortfileDependsEntries skipwhite
    109 syn region PortfileDependsEntries       matchgroup=Normal start="" skip="\\$" end="$" contains=PortfileDependsEntry contained
    110 syn match PortfileDependsEntry          "\(port\|bin\|path\|lib\):" contained
     110syn match PortfileDepends           "depends_\(\(lib\|build\|run\|fetch\|extract\)\(-\(append\|delete\)\)\?\)" nextgroup=PortfileDependsEntries skipwhite
     111syn region PortfileDependsEntries   matchgroup=Normal start="" skip="\\$" end="$" contains=PortfileDependsEntry contained
     112syn match PortfileDependsEntry      "\(port\|bin\|path\|lib\):" contained
    111113
    112114" StartupItems
    113 syn match PortfileStartupPid            "\(none\|auto\|clean\|manual\)" contained
    114 syn match PortfileOptional                      "startupitem\.\(start\|stop\|restart\|init\|executable\)"
    115 syn match PortfileOptional                      "startupitem\.\(create\|logevents\|netchange\)" nextgroup=PortfileYesNo skipwhite
    116 syn match PortfileOptional                      "startupitem\.pidfile" nextgroup=PortfileStartupPid skipwhite
     115syn match PortfileStartupPid    "\(none\|auto\|clean\|manual\)" contained
     116syn match PortfileOptional      "startupitem\.\(start\|stop\|restart\|init\|executable\)"
     117syn match PortfileOptional      "startupitem\.\(create\|logevents\|netchange\)" nextgroup=PortfileYesNo skipwhite
     118syn match PortfileOptional      "startupitem\.pidfile" nextgroup=PortfileStartupPid skipwhite
    117119
    118120" Livecheck / Distcheck
    119 syn match PortfileOptional                      "livecheck\.\(type\|name\|distname\|version\|url\|regex\|md5\)"
    120 syn keyword PortfileOptional            distcheck.check
     121syn match PortfileOptional      "livecheck\.\(type\|name\|distname\|version\|url\|regex\|md5\)"
     122syn keyword PortfileOptional    distcheck.check
    121123
    122124" Notes
    123 syn keyword PortfilePhases              notes
     125syn keyword PortfilePhases  notes
    124126
    125127" Port Groups
    126128
    127129" App
    128 syn match       PortfileGroups                  "app\.\(create\|name\|executable\|icon\|short_version_string\|version\|identifier\)"
     130syn match PortfileGroups    "app\.\(create\|name\|executable\|icon\|short_version_string\|version\|identifier\)"
    129131
    130132" Archcheck
    131 syn match       PortfileGroups                  "archcheck\.files"
     133syn match PortfileGroups    "archcheck\.files"
    132134
    133135" CMake
     
    135137
    136138" crossbinutils
    137 syn match       PortfileGroups                  "crossbinutils\.\(target\|setup\)"
     139syn match PortfileGroups    "crossbinutils\.\(target\|setup\)"
    138140
    139141" crossgcc
    140 syn match       PortfileGroups                  "crossgcc\.\(target\|setup\|setup_libc\)"
     142syn match PortfileGroups    "crossgcc\.\(target\|setup\|setup_libc\)"
    141143
    142144" github
    143 syn match       PortfileGroups                  "github\.\(author\|project\|version\|tag_prefix\|homepage\|raw\|master_sites\|tarball_from\|setup\)"
     145syn match PortfileGroups    "github\.\(author\|project\|version\|tag_prefix\|homepage\|raw\|master_sites\|tarball_from\|setup\)"
    144146
    145147" Gnustep
    146 syn match       PortfileGroups                  "gnustep\.\(post_flags\|cc\)"
    147 syn keyword PortfileGroups                      variant_with_docs gnustep_layout
    148 syn match       PortfileGroups                  "set_\(gnustep_\(make\|env\)\|\(system\|local\)_library\)"
     148syn match PortfileGroups    "gnustep\.\(post_flags\|cc\)"
     149syn keyword PortfileGroups  variant_with_docs gnustep_layout
     150syn match PortfileGroups    "set_\(gnustep_\(make\|env\)\|\(system\|local\)_library\)"
    149151
    150152" Haskell
    151 syn keyword PortfileGroups                      haskell.setup
     153syn keyword PortfileGroups  haskell.setup
    152154
    153155" hocbinding
    154 syn match       PortfileGroups                  "hocbinding\.\(framework\|deps\|setup\)"
     156syn match PortfileGroups    "hocbinding\.\(framework\|deps\|setup\)"
    155157
    156158" hunspelldict
    157 syn match       PortfileGroups                  "hunspelldict\.\(locale\|setup\)"
     159syn match PortfileGroups    "hunspelldict\.\(locale\|setup\)"
    158160
    159161" KDE 4, versions 1.0 and 1.1
     
    161163
    162164" muniversal
    163 syn match       PortfileGroups                  "merger_configure_\(env\|args\|compiler\|cppflags\|cflags\|cxxflags\|objcflags\|ldflags\)"
    164 syn match       PortfileGroups                  "merger_build_\(env\|args\)"
    165 syn match       PortfileGroups                  "merger_\(host\|arch_\(flag\|compiler\)\|destroot_env\|dont_diff\|must_run_binaries\|no_3_archs\)"
    166 syn match       PortfileGroups                  "universal_archs_supported"
     165syn match PortfileGroups    "merger_configure_\(env\|args\|compiler\|cppflags\|cflags\|cxxflags\|objcflags\|ldflags\)"
     166syn match PortfileGroups    "merger_build_\(env\|args\)"
     167syn match PortfileGroups    "merger_\(host\|arch_\(flag\|compiler\)\|destroot_env\|dont_diff\|must_run_binaries\|no_3_archs\)"
     168syn match PortfileGroups    "universal_archs_supported"
    167169
    168170" obsolete
     
    174176
    175177" octave
    176 syn match       PortfileGroups                  "octave\.\(module\|setup\)"
     178syn match PortfileGroups    "octave\.\(module\|setup\)"
    177179
    178180" PEAR
    179 syn match       PortfileGroups                  "pear\.\(env\|configure\.pre_args\|destroot\|installer\|sourceroot\|instpath\|pearpath\|cmd-pear\|cmd-phar\|cmd-php\|channel\|packagexml\|package\|packagefile\|setup\)"
     181syn match PortfileGroups    "pear\.\(env\|configure\.pre_args\|destroot\|installer\|sourceroot\|instpath\|pearpath\|cmd-pear\|cmd-phar\|cmd-php\|channel\|packagexml\|package\|packagefile\|setup\)"
    180182
    181183" Perl5
    182 syn match       PortfileGroups                  "perl5\.\(setup\|branches\|default_branch\|version\|major\|arch\|bin\|lib\|bindir\|archlib\)"
     184syn match PortfileGroups    "perl5\.\(setup\|branches\|default_branch\|version\|major\|arch\|bin\|lib\|bindir\|archlib\)"
    183185
    184186" PHP 1.0
    185 syn match       PortfileGroups                  "php\.\(branch\(es\)\?\|build_dirs\|default_branch\|extension_ini\|extensions\|rootname\|type\|setup\)"
    186 syn match       PortfileGroups                  "php\.\(config\|extension_dir\|ini\(_dir\)\?\|ize\|suffix\)"
     187syn match PortfileGroups    "php\.\(branch\(es\)\?\|build_dirs\|default_branch\|extension_ini\|extensions\|rootname\|type\|setup\)"
     188syn match PortfileGroups    "php\.\(config\|extension_dir\|ini\(_dir\)\?\|ize\|suffix\)"
    187189" PHP 1.1 (only adding those not already present in 1.0)
    188 syn match       PortfileGroups                  "php\.\(rootname\|create_subports\|extensions\.zend\|build_dirs\|add_port_code\)"
    189 syn match       PortfileGroups                  "php\.\(pecl\(_livecheck_stable\)\?\|pecl\.\(name\|prerelease\)\)"
     190syn match PortfileGroups    "php\.\(rootname\|create_subports\|extensions\.zend\|build_dirs\|add_port_code\)"
     191syn match PortfileGroups    "php\.\(pecl\(_livecheck_stable\)\?\|pecl\.\(name\|prerelease\)\)"
    190192
    191193" PHP5 extension
    192 syn match       PortfileGroups                  "php5extension\.\(setup\|build_dirs\|extensions\|extension_dir\|ini\|inidir\|php_ini\|phpize\|type\|source\)"
     194syn match PortfileGroups    "php5extension\.\(setup\|build_dirs\|extensions\|extension_dir\|ini\|inidir\|php_ini\|phpize\|type\|source\)"
    193195
    194196" PHP5 PEAR
    195 syn match       PortfileGroups                  "php5pear\.\(env\|configure\.pre_args\|destroot\|installer\|sourceroot\|instpath\|pearpath\|cmd-\(pear\|phar\|php\)\|channel\|packagexml\|package\|packagefile\|setup\)"
     197syn match PortfileGroups    "php5pear\.\(env\|configure\.pre_args\|destroot\|installer\|sourceroot\|instpath\|pearpath\|cmd-\(pear\|phar\|php\)\|channel\|packagexml\|package\|packagefile\|setup\)"
    196198
    197199" Pure
    198 syn match       PortfileGroups                  "pure\.setup"
     200syn match PortfileGroups    "pure\.setup"
    199201
    200202" Python
    201 syn match       PortfileGroups                  "python\.\(versions\|version\|default_version\|branch\|prefix\|bin\|lib\|libdir\|include\|pkgd\|add_archflags\|set_compiler\|link_binaries\(_suffix\)\?\)"
     203syn match PortfileGroups    "python\.\(versions\|version\|default_version\|branch\|prefix\|bin\|lib\|libdir\|include\|pkgd\|add_archflags\|set_compiler\|link_binaries\(_suffix\)\?\)"
    202204" I'm not documenting the Python{24,25,26,27,31,32} groups. Don't use them.
    203205
    204206" Qt4
    205 syn match       PortfileGroups                  "qt_\(name\|dir\|qmake_spec\|cmake_defines\|arch_types\)"
    206 syn match       PortfileGroups                  "qt_\(qmake\|moc\|uic\|lrelease\)_cmd"
    207 syn match       PortfileGroups                  "qt_\(docs\|plugins\|mkspecs\|imports\|includes\|libs\|frameworks\|bins\|apps\|data\|translations\|sysconf\|examples\|demos\|cmake_module\)_dir"
     207syn match PortfileGroups    "qt_\(name\|dir\|qmake_spec\|cmake_defines\|arch_types\)"
     208syn match PortfileGroups    "qt_\(qmake\|moc\|uic\|lrelease\)_cmd"
     209syn match PortfileGroups    "qt_\(docs\|plugins\|mkspecs\|imports\|includes\|libs\|frameworks\|bins\|apps\|data\|translations\|sysconf\|examples\|demos\|cmake_module\)_dir"
    208210
    209211" Ruby
    210 syn match       PortfileGroups                  "ruby\.\(version\|bin\|rdoc\|gem\|lib\|arch\|archlib\|setup\)"
     212syn match PortfileGroups    "ruby\.\(version\|bin\|rdoc\|gem\|lib\|arch\|archlib\|setup\)"
    211213
    212214" Select
    213 syn match       PortfileGroups                  "select\.\(group\|file\)"
     215syn match PortfileGroups    "select\.\(group\|file\)"
    214216
    215217" TeX Live
    216 syn match       PortfileGroups                  "texlive\.\(exclude\|binaries\|formats\|languages\|maps\|forceupdatecnf\|use_mktexlsr\(_on_deactivate\)\?\|texmfport\)"
     218syn match PortfileGroups    "texlive\.\(exclude\|binaries\|formats\|languages\|maps\|forceupdatecnf\|use_mktexlsr\(_on_deactivate\)\?\|texmfport\)"
    217219
    218220" X11 Font
    219 syn match       PortfileGroups                  "x11font\.setup"
     221syn match PortfileGroups    "x11font\.setup"
    220222
    221223" Xcode
    222 syn match       PortfileGroups                  "xcode\.\(project\|configuration\|target\|build\.settings\)"
    223 syn match       PortfileGroups                  "xcode\.destroot\.\(type\|path\|settings\)"
    224 syn match       PortfileGroups                  "xcode\.universal\.\(sdk\|settings\)"
     224syn match PortfileGroups    "xcode\.\(project\|configuration\|target\|build\.settings\)"
     225syn match PortfileGroups    "xcode\.destroot\.\(type\|path\|settings\)"
     226syn match PortfileGroups    "xcode\.universal\.\(sdk\|settings\)"
    225227
    226228" Xcode version
    227 syn match       PortfileGroups                  "minimum_xcodeversions"
     229syn match PortfileGroups    "minimum_xcodeversions"
    228230
    229231" Zope
    230 syn match       PortfileGroups                  "zope\.\(need_subdir\|setup\)"
     232syn match PortfileGroups    "zope\.\(need_subdir\|setup\)"
    231233
    232234" End of PortGroups
     
    234236
    235237" Tcl extensions
    236 syn keyword PortfileTcl         xinstall system copy move ln
    237 syn keyword PortfileTcl         fs-traverse
    238 syn keyword PortfileTcl         vercmp
     238syn keyword PortfileTcl     xinstall system copy move ln
     239syn keyword PortfileTcl     fs-traverse
     240syn keyword PortfileTcl     vercmp
    239241" check whitespace, copied from python.vim
    240242if g:portfile_highlight_space_errors == 1
    241   " trailing whitespace
    242   syn match   PortfileSpaceError   display excludenl "\S\s\+$"ms=s+1
    243   " mixed tabs and spaces
    244   syn match   PortfileSpaceError   display " \+\t"
    245   syn match   PortfileSpaceError   display "\t\+ "
    246 endif
    247 
    248 hi def link PortfileGroup                               String
    249 hi def link PortfileYesNo                               Special
    250 hi def link PortfileStartupPid                  Special
    251 
    252 hi def link PortfileRequired                    Keyword
    253 hi def link PortfileOptional                    Keyword
    254 hi def link PortfileDescription                 String
    255 hi def link PortfileChecksumsType               Special
    256 
    257 hi def link PortfilePhases                              Keyword
    258 hi def link PortfilePhasesFetch                 Keyword
    259 hi def link PortfilePhasesExtract               Keyword
    260 hi def link PortfilePhasesPatch                 Keyword
    261 hi def link PortfilePhasesConf                  Keyword
    262 hi def link PortfilePhasesAA                    Keyword
    263 hi def link PortfilePhasesBuild                 Keyword
    264 hi def link PortfilePhasesTest                  Keyword
    265 hi def link PortfilePhasesDest                  Keyword
    266 
    267 hi def link PortfileVariantConflicts    Statement
    268 hi def link PortfileVariantDescription  Statement
    269 hi def link PortfileVariantRequires     Statement
    270 hi def link PortfileVariantName                 Identifier
    271 hi def link PortfileDefaultVariants     Identifier
    272 
    273 hi def link PortfilePlatform                    Keyword
    274 hi def link PortfilePlatformName                Identifier
    275 hi def link PortfilePlatformVersion     tclNumber
    276 hi def link PortfilePlatformArch                Identifier
    277 
    278 hi def link PortfileDepends                     Keyword
    279 hi def link PortfileDependsEntry                Special
    280 hi def link PortfileGroups                              Keyword
    281 
    282 hi def link PortfileTcl                                 Keyword
     243    " trailing whitespace
     244    syn match PortfileSpaceError    display excludenl "\S\s\+$"ms=s+1
     245    " mixed tabs and spaces
     246    syn match PortfileSpaceError    display " \+\t"
     247    syn match PortfileSpaceError    display "\t\+ "
     248endif
     249
     250hi def link PortfileGroup               String
     251hi def link PortfileYesNo               Special
     252hi def link PortfileStartupPid          Special
     253
     254hi def link PortfileRequired            Keyword
     255hi def link PortfileOptional            Keyword
     256hi def link PortfileDescription         String
     257hi def link PortfileChecksumsType       Special
     258
     259hi def link PortfilePhases              Keyword
     260hi def link PortfilePhasesFetch         Keyword
     261hi def link PortfilePhasesExtract       Keyword
     262hi def link PortfilePhasesPatch         Keyword
     263hi def link PortfilePhasesConf          Keyword
     264hi def link PortfilePhasesAA            Keyword
     265hi def link PortfilePhasesBuild         Keyword
     266hi def link PortfilePhasesTest          Keyword
     267hi def link PortfilePhasesDest          Keyword
     268
     269hi def link PortfileVariantConflicts    Statement
     270hi def link PortfileVariantDescription  Statement
     271hi def link PortfileVariantRequires     Statement
     272hi def link PortfileVariantName         Identifier
     273hi def link PortfileDefaultVariants     Identifier
     274
     275hi def link PortfilePlatform            Keyword
     276hi def link PortfilePlatformName        Identifier
     277hi def link PortfilePlatformVersion     tclNumber
     278hi def link PortfilePlatformArch        Identifier
     279
     280hi def link PortfileDepends             Keyword
     281hi def link PortfileDependsEntry        Special
     282hi def link PortfileGroups              Keyword
     283
     284hi def link PortfileTcl                 Keyword
    283285
    284286if g:portfile_highlight_space_errors == 1
    285         hi def link PortFileSpaceError  Error
     287    hi def link PortFileSpaceError      Error
    286288endif
    287289
Note: See TracChangeset for help on using the changeset viewer.