" Vim completion script
" Language: XHTML 1.0 Strict
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
" Last Change: 2005 Sep 19
function! htmlcomplete#CompleteTags(findstart, base)
if a:findstart
" locate the start of the word
let line = getline('.')
let start = col('.') - 1
while start >= 0 && line[start - 1] !~ '<'
let start -= 1
endwhile
if start < 0
let curpos = line('.')
let stylestart = searchpair('