ZyX wrote:

> In `:h :syn-sync-maxlines` at the end of the section the following example is 
> given:
> 
>     :syntax sync ccomment maxlines=500
> 
> . This example is not correct and does not do what you expect: it is 
> interpreted as syntax_sync(ccomment="maxlines=500"), not as 
> syntax_sync(ccomment=default, maxlines=500). You can verify this by doing in 
> different buffers
> 
> a)
> 
>     :syntax sync ccomment maxlines=500
>     :syntax sync
>     " outputs “syncing on C-style comments
> 
> b)
> 
>     :syntax sync ccomment
>     :syntax sync maxlines=500
>     :syntax sync
>     " outputs “syncing on C-style comments; maximal 500 lines before top line”
> 
> . To fix this order should be reversed:
> 
>     :syntax sync maxlines=500 ccomment
>     :syntax sync
>     " outputs “syncing on C-style comments; maximal 500 lines before top line”

Thanks, I'll fix the example.

> // Note: according to the help
> //
> // > The name for a highlight or syntax group must consist of ASCII letters, 
> digits
> // > and the underscore.  As a regexp: "[a-zA-Z0-9_]*"
> //
> // , but this is not enforced at least in :syn or :hi. At maximum you will 
> receive W18 warning.

We should probably add a check, because it probably causes trouble to
use illegal names.

-- 
hundred-and-one symptoms of being an internet addict:
268. You get up in the morning and go online before getting your coffee.

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