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

updated for version 7.0g
author vimboss
date Sun, 30 Apr 2006 18:54:39 +0000
parents 6bb1fa855dc9
children e63691e7c504
comparison
equal deleted inserted replaced
855:d2a4f08396fe 856:8cd729851562
1 " Vim completion script 1 " Vim completion script
2 " Language: XML 2 " Language: XML
3 " Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl ) 3 " Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
4 " Last Change: 2006 Apr 19 4 " Last Change: 2006 Apr 30
5 5
6 " This function will create Dictionary with users namespace strings and values 6 " This function will create Dictionary with users namespace strings and values
7 " canonical (system) names of data files. Names should be lowercase, 7 " canonical (system) names of data files. Names should be lowercase,
8 " descriptive to avoid any future conflicts. For example 'xhtml10s' should be 8 " descriptive to avoid any future conflicts. For example 'xhtml10s' should be
9 " name for data of XHTML 1.0 Strict and 'xhtml10t' for XHTML 1.0 Transitional 9 " name for data of XHTML 1.0 Strict and 'xhtml10t' for XHTML 1.0 Transitional
20 else 20 else
21 let users = 'DEFAULT' 21 let users = 'DEFAULT'
22 endif 22 endif
23 23
24 " Source data file. Due to suspected errors in autoload do it with 24 " Source data file. Due to suspected errors in autoload do it with
25 " :runtime. 25 " :runtime.
26 " TODO: make it properly (using autoload, that is) later 26 " TODO: make it properly (using autoload, that is) later
27 exe "runtime autoload/xml/".a:canonical.".vim" 27 exe "runtime autoload/xml/".a:canonical.".vim"
28 28
29 " Remove all traces of unexisting files to return [] when trying 29 " Remove all traces of unexisting files to return [] when trying
30 " omnicomplete something 30 " omnicomplete something
164 " should abandon action 164 " should abandon action
165 return [] 165 return []
166 endif 166 endif
167 167
168 " find tags matching with "a:base" 168 " find tags matching with "a:base"
169 " If a:base contains white space it is attribute. 169 " If a:base contains white space it is attribute.
170 " It could be also value of attribute... 170 " It could be also value of attribute...
171 " We have to get first word to offer 171 " We have to get first word to offer
172 " proper completions 172 " proper completions
173 if context == '' 173 if context == ''
174 let tag = '' 174 let tag = ''