CSS defines words which contain '-'. This change lets syntax files for CSS
highlight such words correctly.

-- 
Masanori Ogino <[email protected]>
http://twitter.com/omasanori
http://gplus.to/omasanori

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
# HG changeset patch
# User Masanori Ogino <[email protected]>
# Date 1393299459 -32400
# Node ID 4f809c57124580ca6dc2d05bdbdb6cb78ea3a3fe
# Parent  10d35c8b50e3243419568294751094edab272a73
Add '-' to iskeyword in ftplugin/css.vim.

CSS defines words which contain '-'. This change lets syntax files for CSS
highlight such words correctly.

diff --git a/runtime/ftplugin/css.vim b/runtime/ftplugin/css.vim
--- a/runtime/ftplugin/css.vim
+++ b/runtime/ftplugin/css.vim
@@ -6,18 +6,19 @@
 if exists("b:did_ftplugin")
   finish
 endif
 let b:did_ftplugin = 1
 
 let s:cpo_save = &cpo
 set cpo&vim
 
-let b:undo_ftplugin = "setl com< cms< inc< fo< ofu<"
+let b:undo_ftplugin = "setl com< cms< inc< fo< ofu< isk<"
 
 setlocal comments=s1:/*,mb:*,ex:*/ commentstring&
 setlocal formatoptions-=t formatoptions+=croql
 setlocal omnifunc=csscomplete#CompleteCSS
+setlocal iskeyword+=-
 
 let &l:include = '^\s*@import\s\+\%(url(\)\='
 
 let &cpo = s:cpo_save
 unlet s:cpo_save

Raspunde prin e-mail lui