[103661] contrib/mpvim/syntax/portfile.vim
larryv at macports.org
larryv at macports.org
Sun Mar 3 23:51:09 PST 2013
Revision: 103661
https://trac.macports.org/changeset/103661
Author: larryv at macports.org
Date: 2013-03-03 23:51:09 -0800 (Sun, 03 Mar 2013)
Log Message:
-----------
mpvim: Replace collections with character classes in syntax match patterns.
Modified Paths:
--------------
contrib/mpvim/syntax/portfile.vim
Modified: contrib/mpvim/syntax/portfile.vim
===================================================================
--- contrib/mpvim/syntax/portfile.vim 2013-03-04 07:28:24 UTC (rev 103660)
+++ contrib/mpvim/syntax/portfile.vim 2013-03-04 07:51:09 UTC (rev 103661)
@@ -96,16 +96,16 @@
syn keyword PortfileVariantRequires requires nextgroup=PortfileVariantName contained
syn keyword PortfileVariantConflicts conflicts nextgroup=PortfileVariantName contained
syn keyword PortfileVariantDescription description nextgroup=PortfileGroup contained skipwhite
-syn match PortfileVariantName "\<[a-zA-Z0-9_]\+\>" contained
+syn match PortfileVariantName "\<\w\+\>" contained
syn keyword PortfileOptional universal_variant nextgroup=PortfileYesNo skipwhite
syn match PortfileOptional "\<default_variants\%(-append\|-delete\)\?\>" nextgroup=PortfileDefaultVariants skipwhite
-syn match PortfileDefaultVariants "\%([+-][a-zA-Z0-9_]\+\s*\)\+" contained
+syn match PortfileDefaultVariants "\<[+-]\w\+\%(\s\+[+-]\w\+\)*\>" contained
" Platform
syn match PortfilePlatform "\<platform\>" nextgroup=PortfilePlatformName skipwhite
-syn match PortfilePlatformName "\<[a-z][a-zA-Z0-9_]\+\>" nextgroup=PortfilePlatformVersion contained skipwhite
-syn match PortfilePlatformVersion "\<[0-9]\+\>" nextgroup=PortfilePlatformArch contained skipwhite
-syn match PortfilePlatformArch "\<[a-z][a-zA-Z0-9_]\+\>" contained
+syn match PortfilePlatformName "\<\l\w\+\>" nextgroup=PortfilePlatformVersion contained skipwhite
+syn match PortfilePlatformVersion "\<\d\+\>" nextgroup=PortfilePlatformArch contained skipwhite
+syn match PortfilePlatformArch "\<\l\w\+\>" contained
" Dependencies
syn match PortfileDepends "\<depends_\%(\%(lib\|build\|run\|fetch\|extract\)\%(-append\|-delete\)\?\)\>" nextgroup=PortfileDependsEntries skipwhite
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130303/c3434d4a/attachment-0001.html>
More information about the macports-changes
mailing list