Am 21.10.2012 04:36, schrieb David Fishburn:>>
/runtime/autoload/syntaxcomplete.vim
I am the maintainer of this file.
I don't really see why this is necessary.
:call search('-') works as does :call search(escape('-', '\'))
Can someone explain why is it necessary?
#v+
" Escape special regex characters
let accept_chars = escape(accept_chars, '\\/.*$^~[]' )
" Remove all characters that are not acceptable
let syn_list = substitute( syn_list, '[^0-9A-Za-z_ '.accept_chars.']', ' ',
'g' )
#v-
Looks like the wrong chars are escaped. In a collection,
:h /[]
only `]', `\', `-' and `^' are special:
:let accept_chars = escape(accept_chars, ']\-^')
--
Andy
--
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