• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/vim-55/runtime/autoload/

Lines Matching refs:let

26 		let users = a:1
28 let users = 'DEFAULT'
46 let g:xmldata_connection = {}
49 let g:xmldata_connection[users] = a:canonical
56 let g:xmldata_entconnect = a:1
58 let g:xmldata_entconnect = 'DEFAULT'
66 let curline = line('.')
67 let line = getline('.')
68 let start = col('.') - 1
69 let compl_begin = col('.') - 2
72 let start -= 1
76 let b:entitiescompl = 1
77 let b:compl_context = ''
81 let b:compl_context = getline('.')[0:(compl_begin)]
85 let i = 1
87 let context_line = getline(curline-i)
90 let context_lines = getline(curline-i, curline-1) + [b:compl_context]
91 let b:compl_context = join(context_lines, ' ')
96 let b:compl_context = ''
99 let i += 1
104 let b:compl_context = matchstr(b:compl_context, '.*\zs<.*')
108 let b:xml_namespace = matchstr(b:compl_context, '^<\zs\k*\ze:')
110 let b:xml_namespace = 'DEFAULT'
117 let res = []
118 let res2 = []
123 let context = matchstr(b:compl_context, '^<\zs.*')
128 let b:unaryTagsStack = "base meta link hr br param img area input col"
130 let opentag = xmlcomplete#GetLastOpenTag("b:unaryTagsStack")
142 let values = g:xmldata{'_'.g:xmldata_connection['DEFAULT']}['vimxmlentities']
144 let values = g:xmldata{'_'.g:xmldata_entconnect}['vimxmlentities']
149 let entdecl = filter(getline(1, "$"), 'v:val =~ "<!ENTITY\\s\\+[^%]"')
152 let intent = map(copy(entdecl), 'matchstr(v:val, "<!ENTITY\\s\\+\\zs\\(\\k\\|[.-:]\\)\\+\\ze")')
153 let values = intent + values
188 let tag = ''
190 let tag = split(context)[0]
193 let tag = substitute(tag, '^'.b:xml_namespace.':', '', '')
197 let attr = matchstr(context, '.*\s\zs.*')
205 let attrname = matchstr(attr, '.*\ze\s*=')
206 let entered_value = matchstr(attr, ".*=\\s*[\"']\\?\\zs.*")
213 let values = g:xmldata{'_'.g:xmldata_connection[b:xml_namespace]}[tag][1][attrname]
224 let attrbase = matchstr(context, ".*[\"']")
225 let attrquote = matchstr(attrbase, '.$')
227 let attrquoteopen = '"'
228 let attrquote = '"'
230 let attrquoteopen = ''
250 let attrs = ['encoding', 'version="1.0"', 'version']
260 let attrs = keys(g:xmldata{'_'.g:xmldata_connection[b:xml_namespace]}[tag][1])
270 let menu = res + res2
271 let final_menu = []
274 let item = menu[i]
276 let m_menu = g:xmldata{'_'.g:xmldata_connection[b:xml_namespace]}['vimxmlattrinfo'][item][0]
277 let m_info = g:xmldata{'_'.g:xmldata_connection[b:xml_namespace]}['vimxmlattrinfo'][item][1]
279 let m_menu = ''
280 let m_info = ''
283 let item = item
285 let item .= '="'
287 let final_menu += [{'word':item, 'menu':m_menu, 'info':m_info}]
291 let item = menu[i]
293 let item = item
295 let item .= '="'
297 let final_menu += [item]
304 let b:unaryTagsStack = "base meta link hr br param img area input col"
306 let opentag = xmlcomplete#GetLastOpenTag("b:unaryTagsStack")
317 let tags = ['!ELEMENT', '!DOCTYPE', '!ATTLIST', '!ENTITY', '!NOTATION', '![CDATA[', '![INCLUDE[', '![IGNORE[']
321 let m = substitute(m, '^!\[\?', '', '')
324 let m = substitute(m, '^!\[\?', '', '')
335 let tags = ['?xml']
350 let opentag = xmlcomplete#GetLastOpenTag("b:unaryTagsStack")
351 let opentag = substitute(opentag, '^\k*:', '', '')
354 let tags = keys(g:xmldata{'_'.g:xmldata_connection[b:xml_namespace]})
361 let tags = g:xmldata{'_'.g:xmldata_connection[b:xml_namespace]}[opentag][0]
364 let context = substitute(context, '^\k*:', '', '')
373 let menu = res + res2
375 let xml_namespace = ''
377 let xml_namespace = b:xml_namespace.':'
380 let final_menu = []
382 let item = menu[i]
384 let m_menu = g:xmldata{'_'.g:xmldata_connection[b:xml_namespace]}['vimxmltaginfo'][item][0]
385 let m_info = g:xmldata{'_'.g:xmldata_connection[b:xml_namespace]}['vimxmltaginfo'][item][1]
387 let m_menu = ''
388 let m_info = ''
390 let final_menu += [{'word':xml_namespace.item, 'menu':m_menu, 'info':m_info}]
393 let final_menu = map(menu, 'xml_namespace.v:val')
410 let linenum=line('.')
411 let lineend=col('.') - 1 " start: cursor position
412 let first=1 " flag for first line searched
413 let b:TagStack='' " main stack of tags
414 let startInComment=s:InComment()
418 let tagpat='</\=\(\k\|[.:-]\)\+\|/>'
420 let tagpat='</\='.b:xml_namespace.':\(\k\|[.-]\)\+\|/>'
423 let tagpat='</\=\(\k\|[.:-]\)\+\|/>'
426 let line=getline(linenum)
428 let line=strpart(line,0,lineend)
430 let lineend=strlen(line)
432 let b:lineTagStack=''
433 let mpos=0
434 let b:TagCol=0
436 let mpos=matchend(line,tagpat)
438 let b:TagCol=b:TagCol+mpos
439 let tag=matchstr(line,tagpat)
442 let b:TagLine=linenum
445 let lineend=lineend-mpos
446 let line=strpart(line,mpos,lineend)
450 let tag=s:Pop('b:lineTagStack')
456 let endtag=s:Peekstack('b:TagStack')
464 let linenum=linenum-1 | let first=0
478 let g:IsKeywordBak=&iskeyword
479 let &iskeyword='33-255'
483 let &iskeyword=g:IsKeywordBak
488 exe 'let '.a:sname."=a:el.' '.".a:sname
490 exe 'let '.a:sname.'=a:el'
495 exe 'let stack='.a:sname
504 exe 'let stack='.a:sname
506 let m=match(stack, '\<'.a:el.'\>')
517 exe 'let stack='.a:sname
518 let top=matchstr(stack, '\<.\{-1,}\>')
527 exe 'let stack='.a:sname
529 let loc=matchend(stack,'\<.\{-1,}\>')
530 exe 'let '.a:sname.'=strpart(stack, loc+1, strlen(stack))'
531 let top=strpart(stack, match(stack, '\<'), loc)
537 exe 'let '.a:sname."=''"