From 8b6144bdfe9efccab5045ebef9f3d5dcf5ee9d00 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 8 Feb 2006 09:20:24 +0000 Subject: [PATCH] updated for version 7.0194 --- runtime/autoload/ccomplete.vim | 17 +- runtime/autoload/htmlcomplete.vim | 130 +++++++++++-- runtime/autoload/javascriptcomplete.vim | 207 +++++++++++++++------ runtime/autoload/xmlcomplete.vim | 6 +- runtime/doc/index.txt | 1 + runtime/doc/insert.txt | 95 ++++++---- runtime/doc/netbeans.txt | 12 +- runtime/doc/tags | 3 +- runtime/doc/todo.txt | 21 +-- runtime/doc/various.txt | 9 + runtime/doc/version7.txt | 36 +++- runtime/ftplugin/lprolog.vim | 6 +- runtime/ftplugin/ocaml.vim | 3 +- runtime/syntax/dot.vim | 6 +- runtime/syntax/lprolog.vim | 6 +- runtime/syntax/sh.vim | 8 +- runtime/syntax/sml.vim | 6 +- runtime/syntax/vim.vim | 19 +- src/Make_mvc.mak | 27 +-- src/edit.c | 237 +++++++++++++++++------- src/eval.c | 29 ++- src/ex_cmds.h | 2 + src/netbeans.c | 30 ++- src/popupmenu.c | 87 ++++++--- src/proto/edit.pro | 2 +- src/proto/eval.pro | 6 +- src/proto/popupmenu.pro | 2 +- src/proto/quickfix.pro | 4 +- src/quickfix.c | 139 +++++++++----- src/structs.h | 12 +- src/version.h | 4 +- 31 files changed, 824 insertions(+), 348 deletions(-) diff --git a/runtime/autoload/ccomplete.vim b/runtime/autoload/ccomplete.vim index 5e0c2aea3..7a840b12e 100644 --- a/runtime/autoload/ccomplete.vim +++ b/runtime/autoload/ccomplete.vim @@ -1,7 +1,7 @@ " Vim completion script " Language: C " Maintainer: Bram Moolenaar -" Last Change: 2006 Feb 03 +" Last Change: 2006 Feb 06 " This function is used for the 'omnifunc' option. @@ -213,22 +213,29 @@ endfunction " If it is a variable we may add "." or "->". Don't do it for other types, " such as a typedef, by not including the info that s:GetAddition() uses. function! s:Tag2item(val) + let x = substitute(a:val['cmd'], '^/^', '', '') + let x = substitute(x, '$/$', '', '') + let x = substitute(x, a:val['name'], '@@', '') if has_key(a:val, "kind") if a:val["kind"] == 'v' - return {'match': a:val['name'], 'tagline': "\t" . a:val['cmd'], 'dict': a:val} + return {'match': a:val['name'], 'tagline': "\t" . a:val['cmd'], 'dict': a:val, 'extra': x} endif if a:val["kind"] == 'f' - return {'match': a:val['name'] . '(', 'tagline': ""} + return {'match': a:val['name'] . '(', 'tagline': "", 'extra': x} endif endif - return {'match': a:val['name'], 'tagline': ''} + return {'match': a:val['name'], 'tagline': '', 'extra': x} endfunction " Turn a match item "val" into an item for completion. " "val['match']" is the matching item. " "val['tagline']" is the tagline in which the last part was found. function! s:Tagline2item(val, brackets) - return a:val['match'] . a:brackets . s:GetAddition(a:val['tagline'], a:val['match'], [a:val], a:brackets == '') + let word = a:val['match'] . a:brackets . s:GetAddition(a:val['tagline'], a:val['match'], [a:val], a:brackets == '') + if has_key(a:val, 'extra') + return {'word': word, 'menu': a:val['extra']} + endif + return {'word': word, 'menu': substitute(a:val['tagline'], word, '@@', '')} endfunction diff --git a/runtime/autoload/htmlcomplete.vim b/runtime/autoload/htmlcomplete.vim index cf76e69cc..a6295373e 100644 --- a/runtime/autoload/htmlcomplete.vim +++ b/runtime/autoload/htmlcomplete.vim @@ -1,7 +1,7 @@ " Vim completion script " Language: XHTML 1.0 Strict " Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl ) -" Last Change: 2006 Jan 30 +" Last Change: 2006 Feb 6 function! htmlcomplete#CompleteTags(findstart, base) if a:findstart @@ -13,11 +13,14 @@ function! htmlcomplete#CompleteTags(findstart, base) while start >= 0 && line[start - 1] =~ '\(\k\|[:.-]\)' let start -= 1 endwhile + " Handling of entities {{{ if start >= 0 && line[start - 1] =~ '&' let b:entitiescompl = 1 let b:compl_context = '' return start endif + " }}} + " Handling of