Changeset 54443


Ignore:
Timestamp:
Jul 27, 2009, 6:30:32 PM (9 years ago)
Author:
mnick@…
Message:
  • force entries after configure.args* to have normal syntax coloring
  • set color of default_variant names to color of variant names
  • support autoreconf*
File:
1 edited

Legend:

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

    r54439 r54443  
    5757syn keyword PortfilePhasesConf  use_configure nextgroup=PortfileYesNo skipwhite
    5858syn 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\)\)"
     59syn match PortfilePhasesConf    "configure\.\(\(pre\|post\)\-\)*args\(-\(\append\|delete\)\)" nextgroup=PortfileConfEntries skipwhite
     60syn region PortfileConfEntries  matchgroup=Normal start="" skip="\\$" end="$" contained
    6061syn match PortfilePhasesConf    "configure\.\(cc\|cpp\|cxx\|objc\|fc\|f77\|f90\|javac\|compiler\)"
    6162syn match PortfilePhasesConf    "configure\.\(perl\|python\|ruby\|install\|awk\|bison\)"
     
    6465
    6566" Automake and Autoconf
    66 syn match PortfilePhasesAA              "use_\(automake\|autoconf\)" nextgroup=PortfileYesNo skipwhite
    67 syn match PortfilePhasesAA              "auto\(make\|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\)"
    6869
    6970" Build phase options
     
    8990syn match PortfileVariantName                   "[a-zA-Z0-9_]\+" contained
    9091syn keyword PortfileOptional                    universal_variant nextgroup=PortfileYesNo skipwhite
    91 syn keyword PortfileOptional                    default_variants nextgroup=PortfileDefaultVariants skipwhite
     92syn match PortfileOptional                              "default_variants\(-\(append\|delete\)\)*" nextgroup=PortfileDefaultVariants skipwhite
    9293syn match PortfileDefaultVariants               "\([+|\-][a-zA-Z0-9_]\+\s*\)\+" contained
    9394
     
    135136hi def link PortfileVariantRequires     Statement
    136137hi def link PortfileVariantName                 Identifier
    137 hi def link PortfileDefaultVariants     String
     138hi def link PortfileDefaultVariants     Identifier
    138139hi def link PortfileDepends                     Keyword
    139140hi def link PortfileDependsEntry                Special
Note: See TracChangeset for help on using the changeset viewer.