Lines Matching refs:l
37 let l:thisl = substitute(getline(a:lnum), '[;#].*$', '', '')
39 let l:preproc = l:thisl =~? '^\s*!\%(if\|else\|endif\)'
43 let l:prevlnum = a:lnum
45 let l:prevlnum = prevnonblank(l:prevlnum - 1)
46 if l:prevlnum == 0
50 let l:prevl = substitute(getline(l:prevlnum), '[;#].*$', '', '')
51 let l:prevpreproc = l:prevl =~? '^\s*!\%(if\|else\|endif\)'
52 if l:preproc == l:prevpreproc && getline(l:prevlnum - 1) !~? '\\$'
56 let l:previ = indent(l:prevlnum)
57 let l:ind = l:previ
59 if l:preproc
61 if l:prevl =~? '^\s*!\%(if\%(\%(macro\)\?n\?def\)\?\|else\)\>'
62 let l:ind += shiftwidth()
64 if l:thisl =~? '^\s*!\%(else\|endif\)\?\>'
65 let l:ind -= shiftwidth()
67 return l:ind
70 …if l:prevl =~? '^\s*\%(\${\%(If\|IfNot\|Unless\|ElseIf\|ElseIfNot\|ElseUnless\|Else\|AndIf\|AndIfN…
72 let l:ind += shiftwidth()
74 …if l:thisl =~? '^\s*\%(\${\%(ElseIf\|ElseIfNot\|ElseUnless\|Else\|EndIf\|EndUnless\|AndIf\|AndIfNo…
76 let l:ind -= shiftwidth()
77 elseif l:thisl =~? '^\s*\${\%(Case\|Case[2-5]\|CaseElse\|Default\)\>}\?'
78 if l:prevl !~? '^\s*\${\%(Select\|Switch\)}'
79 let l:ind -= shiftwidth()
81 elseif l:thisl =~? '^\s*\${\%(EndSelect\|EndSwitch\)\>}\?'
83 if l:prevl =~? '^\s*\${\%(Select\|Switch\)}'
84 let l:ind -= shiftwidth()
86 let l:ind -= shiftwidth() * 2
90 return l:ind