[llvm-commits] [llvm] r112265 - /llvm/trunk/utils/vim/vimrc

Dan Gohman gohman at apple.com
Fri Aug 27 08:16:09 PDT 2010


Author: djg
Date: Fri Aug 27 10:16:09 2010
New Revision: 112265

URL: http://llvm.org/viewvc/llvm-project?rev=112265&view=rev
Log:
Parse " (Hidden)" and cope with it.

Modified:
    llvm/trunk/utils/vim/vimrc

Modified: llvm/trunk/utils/vim/vimrc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/vim/vimrc?rev=112265&r1=112264&r2=112265&view=diff
==============================================================================
--- llvm/trunk/utils/vim/vimrc (original)
+++ llvm/trunk/utils/vim/vimrc Fri Aug 27 10:16:09 2010
@@ -155,6 +155,13 @@
            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





More information about the llvm-commits mailing list