packages: vim-syntax-mycnf/mycnf.vim - more strict label rule

glen glen at pld-linux.org
Mon May 17 18:52:33 CEST 2010


Author: glen                         Date: Mon May 17 16:52:33 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- more strict label rule

---- Files affected:
packages/vim-syntax-mycnf:
   mycnf.vim (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: packages/vim-syntax-mycnf/mycnf.vim
diff -u packages/vim-syntax-mycnf/mycnf.vim:1.4 packages/vim-syntax-mycnf/mycnf.vim:1.5
--- packages/vim-syntax-mycnf/mycnf.vim:1.4	Mon May 17 18:46:22 2010
+++ packages/vim-syntax-mycnf/mycnf.vim	Mon May 17 18:52:27 2010
@@ -17,8 +17,7 @@
 " shut case off
 syn case ignore
 
-syn match  mycnfLabel		"^.\{-}="
-syn match  mycnfLabel		"^.\{-}$"
+syn match  mycnfLabel		"^[a-z_0-9-]\+\s*=\?"
 syn region mycnfHeader		start="^\[" end="\]"
 syn match  mycnfComment		"^#.*$"
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/vim-syntax-mycnf/mycnf.vim?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list