Hello.

I'm using vim 7.2, and .vimrc as follows.
au FileType * set omnifunc=syntaxcomplete#Complete
However, the last syntax group in ":syn list" does not show in
completion menu.

I wrote a patch to fix this problem.
Regards,
hpnpwd.

diff -r 01c5b19eaee0 -r 0ebd175912bd runtime/autoload/
syntaxcomplete.vim
--- a/runtime/autoload/syntaxcomplete.vim       Thu Jan 28 12:30:31 2010
+0900
+++ b/runtime/autoload/syntaxcomplete.vim       Thu Jan 28 13:22:01 2010
+0900
@@ -314,7 +314,7 @@
     "     \ze          - end the match
     "     \n\w         - at the first newline starting with a
character
     let syntax_group = matchstr(a:syntax_full,
-                \ "\n".a:group_name.'\s\+xxx\s\+\zs.\{-}
\ze'."\n".'\w'
+                \ "\n".a:group_name.'\s\+xxx\s\+\zs.\{-}\ze\(\n\w\|\%$
\)'
                 \ )

     if syntax_group != ""

-- 
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui