James Hunt wrote:

> Hi Thedward,
> 
> Thanks for the suggestion! Updated patch attached.

I actually don't like changing 'iskeyword' in a syntax file, it has side
effects.  E.g., users may change 'iskeyword' to find text in comments,
thus it doesn't have to match what the language defines as a keyword.
So the option name is confusing.

In this case, if you really want to include "-" in keywords (so that you
can use them with ":syn keyword"), please use:

        :setlocal iskeyword+=-

-- 
Any sufficiently advanced technology is indistinguishable from magic.
                                        Arthur C. Clarke
Any sufficiently advanced bug is indistinguishable from a feature.
                                        Rich Kulawiec

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
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

Raspunde prin e-mail lui