Lines Matching +refs:find +refs:lisp +refs:line +refs:indent
1 " Vim indent file
5 " URI: http://trific.ath.cx/Ftp/vim/indent/pov.vim
7 " Only load this indent file when no other was loaded.
14 setlocal nolisp " Make sure lisp indenting doesn't supersede us.
24 " Counts matches of a regexp <rexp> in line number <line>.
27 function! s:MatchCount(line, rexp)
28 let str = getline(a:line)
33 if i >= 0 && synIDattr(synID(a:line, i, 0), "name") !~? "string\|comment"
40 " The main function. Returns indent amount.
43 if synIDattr(synID(v:lnum, indent(v:lnum)+1, 0), "name") =~? "string\|comment"
47 " Search backwards for the frist non-empty, non-comment line.
49 let plind = indent(plnum)
52 let plind = indent(plnum)
60 " Analyse previous nonempty line.
66 " Dirty hack for people writing #if and #else on the same line.
68 " When chg > 0, then we opened groups and we should indent more, but when
69 " chg < 0, we closed groups and this already affected the previous line,
73 " Analyse current line
74 " FIXME: If we have to dedent, we should try to find the indentation of the
75 " opening line.