aboutsummaryrefslogtreecommitdiffstats
path: root/utils/vim
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-27 15:16:09 +0000
committerDan Gohman <gohman@apple.com>2010-08-27 15:16:09 +0000
commit88b3a68490d7f213c393ec43f0e2f6742eee2a8e (patch)
tree8ef4ebaaa7059a73f0d8d112b688f9d79c732a21 /utils/vim
parent34a92b7f8270d8a862673f61340dacc10541f47c (diff)
downloadexternal_llvm-88b3a68490d7f213c393ec43f0e2f6742eee2a8e.zip
external_llvm-88b3a68490d7f213c393ec43f0e2f6742eee2a8e.tar.gz
external_llvm-88b3a68490d7f213c393ec43f0e2f6742eee2a8e.tar.bz2
Parse " (Hidden)" and cope with it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/vim')
-rw-r--r--utils/vim/vimrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/vim/vimrc b/utils/vim/vimrc
index 8191584..6f6441b 100644
--- a/utils/vim/vimrc
+++ b/utils/vim/vimrc
@@ -155,6 +155,13 @@ function! ClangComplete(findstart, base)
let l:value = l:value[:l:spacecolonspace-1]
endif
+ " Chop off " (Hidden)", if present, and move it to the menu.
+ let l:hidden = stridx(l:value, " (Hidden)")
+ if l:hidden != -1
+ let l:menu .= " (Hidden)"
+ let l:value = l:value[:l:hidden-1]
+ endif
+
" Handle Pattern. TODO: Make clang less weird.
if l:value == "Pattern"
let l:value = l:menu