Charles Campbell wrote:

> In nosing around the help, I see for :help filetypedetect-changed the
> following:
> 
> The distributed syntax files no longer contain "syntax clear".  That
> makes it
> possible to include one in the other without tricks.  The syntax is now
> cleared when the 'syntax' option is set (by an autocommand added from
> synload.vim).  This makes the syntax cleared when the value of 'syntax' does
> not correspond to a syntax file.  Previously the existing highlighting was
> kept.
> 
> However:
> 
> fgrep "syn clear" *.vim | wc  shows 56 files with this command, and
> fgrep "syntax clear" *.vim | wc shows 357 files with this command.
> 
> Should all the syn(tax) clears be removed?  Or am I reading the above
> paragraph incorrectly?

These should all be inside an if:

if version < 600
  syntax clear
elseif exists("b:current_syntax")
  finish
endif

Since version 6 is now very old, we could change all of them to:

if exists("b:current_syntax")
  finish
endif

Perhaps I should just do that now, so that it's consistent.

-- 
hundred-and-one symptoms of being an internet addict:
112. You are amazed that anyone uses a phone without a modem on it...let
     alone hear actual voices.

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

--- 
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/d/optout.

Raspunde prin e-mail lui