Changeset 54439


Ignore:
Timestamp:
Jul 27, 2009, 6:15:50 PM (9 years ago)
Author:
mnick@…
Message:
  • escape dot in build, test and destroot phases
  • fix variant description parsing
File:
1 edited

Legend:

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

    r54435 r54439  
    6868
    6969" Build phase options
    70 syn match PortfilePhasesBuild   "build.\(cmd\|type\)"
    71 syn match PortfilePhasesBuild   "build.\(\(pre\|post\)_\)*args"
    72 syn match PortfilePhasesBuild   "build.\(target\|env\)\(-\(append\|delete\)\)*"
     70syn match PortfilePhasesBuild   "build\.\(cmd\|type\)"
     71syn match PortfilePhasesBuild   "build\.\(\(pre\|post\)_\)*args"
     72syn match PortfilePhasesBuild   "build\.\(target\|env\)\(-\(append\|delete\)\)*"
    7373syn keyword PortfilePhasesBuild use_parallel_build nextgroup=PortfileYesNo skipwhite
    7474
    7575" Test phase options
    76 syn match PortfilePhasesTest    "test.\(run\|cmd\|target\)"
    77 syn match PortfilePhasesTest    "test.env\(-\(append\|delete\)\)*"
     76syn match PortfilePhasesTest    "test\.\(run\|cmd\|target\)"
     77syn match PortfilePhasesTest    "test\.env\(-\(append\|delete\)\)*"
    7878
    7979" Test destroot options
    80 syn match PortfilePhasesDest    "destroot.\(cmd\|type\|destdir\|umask\|keepdirs\|violate_mtree\)"
    81 syn match PortfilePhasesDest    "destroot.\(\(pre\|post\)_\)*args"
    82 syn match PortfilePhasesDest    "destroot.target\(-\(append\|delete\)\)*"
     80syn match PortfilePhasesDest    "destroot\.\(cmd\|type\|destdir\|umask\|keepdirs\|violate_mtree\)"
     81syn match PortfilePhasesDest    "destroot\.\(\(pre\|post\)_\)*args"
     82syn match PortfilePhasesDest    "destroot\.target\(-\(append\|delete\)\)*"
    8383
    8484" Variants
     
    8686syn keyword PortfileVariantRequires     requires nextgroup=PortfileVariantName contained
    8787syn keyword PortfileVariantConflicts    conflicts nextgroup=PortfileVariantName contained
    88 syn keyword PortfileVariantDescription  description nextgroup=PortfileGroup contained
     88syn keyword PortfileVariantDescription  description nextgroup=PortfileGroup contained skipwhite
    8989syn match PortfileVariantName                   "[a-zA-Z0-9_]\+" contained
    9090syn keyword PortfileOptional                    universal_variant nextgroup=PortfileYesNo skipwhite
Note: See TracChangeset for help on using the changeset viewer.