Mercurial > vim
comparison runtime/autoload/csscomplete.vim @ 553:249173daa651
updated for version 7.0157
author | vimboss |
---|---|
date | Wed, 12 Oct 2005 20:52:20 +0000 |
parents | f43150a669dc |
children | 8cd729851562 |
comparison
equal
deleted
inserted
replaced
552:d5892839ed90 | 553:249173daa651 |
---|---|
1 " Vim completion script | 1 " Vim completion script |
2 " Language: CSS 2.1 | 2 " Language: CSS 2.1 |
3 " Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl ) | 3 " Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl ) |
4 " Last Change: 2005 Oct 9 | 4 " Last Change: 2005 Oct 12 |
5 | 5 |
6 function! csscomplete#CompleteCSS(findstart, base) | 6 function! csscomplete#CompleteCSS(findstart, base) |
7 if a:findstart | 7 if a:findstart |
8 " We need whole line to proper checking | 8 " We need whole line to proper checking |
9 let line = getline('.') | 9 let line = getline('.') |
25 " 3. if } we are outside of css definitions | 25 " 3. if } we are outside of css definitions |
26 " 4. for comments ignoring is be the easiest but assume they are the same | 26 " 4. for comments ignoring is be the easiest but assume they are the same |
27 " as 1. | 27 " as 1. |
28 " 5. if @ complete at-rule | 28 " 5. if @ complete at-rule |
29 " 6. if ! complete important | 29 " 6. if ! complete important |
30 | 30 if exists("b:compl_context") |
31 let line = b:compl_context | 31 let line = b:compl_context |
32 unlet! b:compl_context | 32 unlet! b:compl_context |
33 else | |
34 let line = a:base | |
35 endif | |
33 | 36 |
34 let res = [] | 37 let res = [] |
35 let res2 = [] | 38 let res2 = [] |
36 let borders = {} | 39 let borders = {} |
37 | 40 |