summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe2010-05-17 16:52:27 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit5a25b3c7064123a905417f0b173050136bb6c4c4 (patch)
tree8079d89a895684681d7c9297e49ada4fb4ab8728
parent2fd8e30412519721d726213ae934521d7bde5869 (diff)
downloadvim-syntax-mycnf-5a25b3c7064123a905417f0b173050136bb6c4c4.zip
vim-syntax-mycnf-5a25b3c7064123a905417f0b173050136bb6c4c4.tar.gz
- more strict label ruleauto/th/vim-syntax-mycnf-1_1-1
Changed files: mycnf.vim -> 1.5
-rw-r--r--mycnf.vim3
1 files changed, 1 insertions, 2 deletions
diff --git a/mycnf.vim b/mycnf.vim
index 935e335..22b6149 100644
--- a/mycnf.vim
+++ b/mycnf.vim
@@ -17,8 +17,7 @@ endif
" 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 "^#.*$"