Changeset 103661 for contrib/mpvim


Ignore:
Timestamp:
Mar 4, 2013, 7:51:09 AM (11 years ago)
Author:
larryv@…
Message:

mpvim: Replace collections with character classes in syntax match patterns.

File:
1 edited

Legend:

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

    r103660 r103661  
    9797syn keyword PortfileVariantConflicts    conflicts nextgroup=PortfileVariantName contained
    9898syn keyword PortfileVariantDescription  description nextgroup=PortfileGroup contained skipwhite
    99 syn match PortfileVariantName           "\<[a-zA-Z0-9_]\+\>" contained
     99syn match PortfileVariantName           "\<\w\+\>" contained
    100100syn keyword PortfileOptional            universal_variant nextgroup=PortfileYesNo skipwhite
    101101syn match PortfileOptional              "\<default_variants\%(-append\|-delete\)\?\>" nextgroup=PortfileDefaultVariants skipwhite
    102 syn match PortfileDefaultVariants       "\%([+-][a-zA-Z0-9_]\+\s*\)\+" contained
     102syn match PortfileDefaultVariants       "\<[+-]\w\+\%(\s\+[+-]\w\+\)*\>" contained
    103103
    104104" Platform
    105105syn match PortfilePlatform          "\<platform\>" nextgroup=PortfilePlatformName skipwhite
    106 syn match PortfilePlatformName      "\<[a-z][a-zA-Z0-9_]\+\>" nextgroup=PortfilePlatformVersion contained skipwhite
    107 syn match PortfilePlatformVersion   "\<[0-9]\+\>" nextgroup=PortfilePlatformArch contained skipwhite
    108 syn match PortfilePlatformArch      "\<[a-z][a-zA-Z0-9_]\+\>" contained
     106syn match PortfilePlatformName      "\<\l\w\+\>" nextgroup=PortfilePlatformVersion contained skipwhite
     107syn match PortfilePlatformVersion   "\<\d\+\>" nextgroup=PortfilePlatformArch contained skipwhite
     108syn match PortfilePlatformArch      "\<\l\w\+\>" contained
    109109
    110110" Dependencies
Note: See TracChangeset for help on using the changeset viewer.