comparison runtime/autoload/javascriptcomplete.vim @ 856:8cd729851562 v7.0g

updated for version 7.0g
author vimboss
date Sun, 30 Apr 2006 18:54:39 +0000
parents 9090f866cd57
children 1218c5353e2b
comparison
equal deleted inserted replaced
855:d2a4f08396fe 856:8cd729851562
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 Feb 6 4 " Last Change: 2006 Apr 30
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('.')
46 " Complete methods and properties for objects 46 " Complete methods and properties for objects
47 " DOM separate 47 " DOM separate
48 let doms = ['style.'] 48 let doms = ['style.']
49 " Arrays 49 " Arrays
50 let arrayprop = ['constructor', 'index', 'input', 'length', 'prototype'] 50 let arrayprop = ['constructor', 'index', 'input', 'length', 'prototype']
51 let arraymeth = ['concat', 'join', 'pop', 'push', 'reverse', 'shift', 51 let arraymeth = ['concat', 'join', 'pop', 'push', 'reverse', 'shift',
52 \ 'splice', 'sort', 'toSource', 'toString', 'unshift', 'valueOf', 52 \ 'splice', 'sort', 'toSource', 'toString', 'unshift', 'valueOf',
53 \ 'watch', 'unwatch'] 53 \ 'watch', 'unwatch']
54 call map(arraymeth, 'v:val."("') 54 call map(arraymeth, 'v:val."("')
55 let arrays = arrayprop + arraymeth 55 let arrays = arrayprop + arraymeth
56 56