summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 "^#.*$"