Mercurial > vim
comparison runtime/autoload/ccomplete.vim @ 610:cd3689efd90a v7.0173
updated for version 7.0173
author | vimboss |
---|---|
date | Sun, 18 Dec 2005 22:10:00 +0000 |
parents | f43150a669dc |
children | 9032e4668296 |
comparison
equal
deleted
inserted
replaced
609:ba54311bc43e | 610:cd3689efd90a |
---|---|
1 " Vim completion script | 1 " Vim completion script |
2 " Language: C | 2 " Language: C |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | 3 " Maintainer: Bram Moolenaar <Bram@vim.org> |
4 " Last Change: 2005 Oct 06 | 4 " Last Change: 2005 Dec 18 |
5 | 5 |
6 | 6 |
7 " This function is used for the 'omnifunc' option. | 7 " This function is used for the 'omnifunc' option. |
8 function! ccomplete#Complete(findstart, base) | 8 function! ccomplete#Complete(findstart, base) |
9 if a:findstart | 9 if a:findstart |
85 " For a variable use the command, which must be a search pattern that | 85 " For a variable use the command, which must be a search pattern that |
86 " shows the declaration of the variable. | 86 " shows the declaration of the variable. |
87 if diclist[i]['kind'] == 'v' | 87 if diclist[i]['kind'] == 'v' |
88 let line = diclist[i]['cmd'] | 88 let line = diclist[i]['cmd'] |
89 if line[0] == '/' && line[1] == '^' | 89 if line[0] == '/' && line[1] == '^' |
90 let col = match(line, items[0]) | 90 let col = match(line, '\<' . items[0] . '\>') |
91 call extend(res, s:Nextitem(strpart(line, 2, col - 2), items[1:])) | 91 call extend(res, s:Nextitem(strpart(line, 2, col - 2), items[1:])) |
92 endif | 92 endif |
93 endif | 93 endif |
94 endfor | 94 endfor |
95 endif | 95 endif |