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”

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

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