Changeset 54444


Ignore:
Timestamp:
Jul 27, 2009, 6:41:35 PM (9 years ago)
Author:
mnick@…
Message:

fix wrong usage of * where ? should have been used

File:
1 edited

Legend:

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

    r54443 r54444  
    3737syn keyword PortfileChecksumsType md5 sha1 rmd160 contained
    3838
    39 syn match PortfilePhases                "\(\(pre\|post\)\-\)*\(fetch\|checksum\|extract\|patch\|configure\|build\|test\|destroot\|archive\|install\|activate\)\s" contains=PortfilePrePost
     39syn match PortfilePhases                "\(\(pre\|post\)\-\)\?\(fetch\|checksum\|extract\|patch\|configure\|build\|test\|destroot\|archive\|install\|activate\)\s" contains=PortfilePrePost
    4040
    4141" Fetch phase options
     
    4747
    4848" Extract phase options
    49 syn match PortfilePhasesExtract "extract\.\(suffix\|mkdir\|cmd\|only\(\-\(append\|delete\)\)*\)"
     49syn match PortfilePhasesExtract "extract\.\(suffix\|mkdir\|cmd\|only\(\-\(append\|delete\)\)\?\)"
    5050syn match PortfilePhasesExtract "use_\(7z\|bzip2\|lzma\|zip\)" nextgroup=PortfileYesNo skipwhite
    5151
    5252" Patch phase options
    53 syn match PortfilePhasesPatch   "patch\.\(dir\|cmd\|args\(\-\(append\|delete\)\)*\)"
    54 syn match PortfilePhasesPatch   "patchfiles\(\-\(append\|delete\)\)*"
     53syn match PortfilePhasesPatch   "patch\.\(dir\|cmd\|args\(\-\(append\|delete\)\)\?\)"
     54syn match PortfilePhasesPatch   "patchfiles\(\-\(append\|delete\)\)\?"
    5555
    5656" Configure phase options
    5757syn keyword PortfilePhasesConf  use_configure nextgroup=PortfileYesNo skipwhite
    58 syn match PortfilePhasesConf    "configure\.\(env\|\(c\|ld\|cpp\|cxx\|objc\|f\|fc\|f90\)flags\)\(-\(append\|delete\)\)*"
    59 syn match PortfilePhasesConf    "configure\.\(\(pre\|post\)\-\)*args\(-\(\append\|delete\)\)" nextgroup=PortfileConfEntries skipwhite
     58syn match PortfilePhasesConf    "configure\.\(env\|\(c\|ld\|cpp\|cxx\|objc\|f\|fc\|f90\)flags\)\(-\(append\|delete\)\)\?"
     59syn match PortfilePhasesConf    "configure\.\(\(pre\|post\)\-\)\?args\(-\(\append\|delete\)\)" nextgroup=PortfileConfEntries skipwhite
    6060syn region PortfileConfEntries  matchgroup=Normal start="" skip="\\$" end="$" contained
    6161syn match PortfilePhasesConf    "configure\.\(cc\|cpp\|cxx\|objc\|fc\|f77\|f90\|javac\|compiler\)"
    6262syn match PortfilePhasesConf    "configure\.\(perl\|python\|ruby\|install\|awk\|bison\)"
    63 syn match PortfilePhasesConf    "configure\.\(pkg_config\(_path\)*\)"
     63syn match PortfilePhasesConf    "configure\.\(pkg_config\(_path\)\?\)"
    6464syn match PortfilePhasesConf    "configure.universal_\(args\|\(c\|cpp\|cxx\|ld\)flags\)"
    6565
    6666" Automake and Autoconf
    67 syn match PortfilePhasesAA              "use_auto\(make\|\(re\)*conf\)" nextgroup=PortfileYesNo skipwhite
    68 syn match PortfilePhasesAA              "auto\(make\|\(re\)*conf\).\(env\|args\|dir\)"
     67syn match PortfilePhasesAA              "use_auto\(make\|\(re\)\?conf\)" nextgroup=PortfileYesNo skipwhite
     68syn match PortfilePhasesAA              "auto\(make\|\(re\)\?conf\).\(env\|args\|dir\)"
    6969
    7070" Build phase options
    7171syn match PortfilePhasesBuild   "build\.\(cmd\|type\)"
    72 syn match PortfilePhasesBuild   "build\.\(\(pre\|post\)_\)*args"
    73 syn match PortfilePhasesBuild   "build\.\(target\|env\)\(-\(append\|delete\)\)*"
     72syn match PortfilePhasesBuild   "build\.\(\(pre\|post\)_\)\?args"
     73syn match PortfilePhasesBuild   "build\.\(target\|env\)\(-\(append\|delete\)\)\?"
    7474syn keyword PortfilePhasesBuild use_parallel_build nextgroup=PortfileYesNo skipwhite
    7575
    7676" Test phase options
    7777syn match PortfilePhasesTest    "test\.\(run\|cmd\|target\)"
    78 syn match PortfilePhasesTest    "test\.env\(-\(append\|delete\)\)*"
     78syn match PortfilePhasesTest    "test\.env\(-\(append\|delete\)\)\?"
    7979
    8080" Test destroot options
    8181syn match PortfilePhasesDest    "destroot\.\(cmd\|type\|destdir\|umask\|keepdirs\|violate_mtree\)"
    82 syn match PortfilePhasesDest    "destroot\.\(\(pre\|post\)_\)*args"
    83 syn match PortfilePhasesDest    "destroot\.target\(-\(append\|delete\)\)*"
     82syn match PortfilePhasesDest    "destroot\.\(\(pre\|post\)_\)\?args"
     83syn match PortfilePhasesDest    "destroot\.target\(-\(append\|delete\)\)\?"
    8484
    8585" Variants
     
    9090syn match PortfileVariantName                   "[a-zA-Z0-9_]\+" contained
    9191syn keyword PortfileOptional                    universal_variant nextgroup=PortfileYesNo skipwhite
    92 syn match PortfileOptional                              "default_variants\(-\(append\|delete\)\)*" nextgroup=PortfileDefaultVariants skipwhite
     92syn match PortfileOptional                              "default_variants\(-\(append\|delete\)\)\?" nextgroup=PortfileDefaultVariants skipwhite
    9393syn match PortfileDefaultVariants               "\([+|\-][a-zA-Z0-9_]\+\s*\)\+" contained
    9494
    9595" Dependencies
    96 syn match PortfileDepends                       "depends_\(\(lib\|build\|run\)\(-\(append\|delete\)\)*\)" nextgroup=PortfileDependsEntries skipwhite
     96syn match PortfileDepends                       "depends_\(\(lib\|build\|run\)\(-\(append\|delete\)\)\?\)" nextgroup=PortfileDependsEntries skipwhite
    9797syn region PortfileDependsEntries       matchgroup=Normal start="" skip="\\$" end="$" contains=PortfileDependsEntry contained
    9898syn match PortfileDependsEntry          "\(port\|bin\):" contained
Note: See TracChangeset for help on using the changeset viewer.