comparison runtime/autoload/javascriptcomplete.vim @ 11062:1218c5353e2b

Runtime file updates. commit https://github.com/vim/vim/commit/214641f77df6f318a4b3a0b09723c19859a103f4 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 5 17:04:09 2017 +0100 Runtime file updates.
author Christian Brabandt <cb@256bit.org>
date Sun, 05 Mar 2017 17:15:05 +0100
parents 8cd729851562
children 1b345fb68ae3
comparison
equal deleted inserted replaced
11061:0f11b92d7f5e 11062:1218c5353e2b
1 " Vim completion script 1 " Vim completion script
2 " Language: Java Script 2 " Language: Java Script
3 " Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl ) 3 " Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
4 " Last Change: 2006 Apr 30 4 " Last Change: 2017 Mar 04
5 5
6 function! javascriptcomplete#CompleteJS(findstart, base) 6 function! javascriptcomplete#CompleteJS(findstart, base)
7 if a:findstart 7 if a:findstart
8 " locate the start of the word 8 " locate the start of the word
9 let line = getline('.') 9 let line = getline('.')
561 " Create table to keep arguments for additional 'menu' info 561 " Create table to keep arguments for additional 'menu' info
562 let b:js_menuinfo = {} 562 let b:js_menuinfo = {}
563 for i in arguments 563 for i in arguments
564 let g:ia = i 564 let g:ia = i
565 let f_elements = matchlist(i, 'function\s\+\(\k\+\)\s*(\(.\{-}\))') 565 let f_elements = matchlist(i, 'function\s\+\(\k\+\)\s*(\(.\{-}\))')
566 if len(f_elements) == 3 566 if len(f_elements) >= 3
567 let b:js_menuinfo[f_elements[1].'('] = f_elements[2] 567 let b:js_menuinfo[f_elements[1].'('] = f_elements[2]
568 endif 568 endif
569 endfor 569 endfor
570 570
571 " Get functions arguments 571 " Get functions arguments