Lines Matching refs:l
110 let l:line = getline('.')
111 let l:start = col('.') - 1
112 while l:start > 0 && l:line[l:start - 1] =~ '\i'
113 let l:start -= 1
115 return l:start
119 let l:l = line('.')
120 let l:c = col('.')
123 let l:the_command = shellescape(g:clang_path) .
124 \ " -cc1 -code-completion-at=-:" . l:l . ":" . l:c
125 for l:opt in g:clang_opts
126 let l:the_command .= " " . shellescape(l:opt)
135 let l:process_input = join(getline(1, l:l), "\n") . " "
138 let l:input_lines = split(system(l:the_command, l:process_input), "\n")
141 for l:input_line in l:input_lines
143 if l:input_line[:11] == 'COMPLETION: '
144 let l:value = l:input_line[12:]
147 let l:menu = ""
148 let l:spacecolonspace = stridx(l:value, " : ")
149 if l:spacecolonspace != -1
150 let l:menu = l:value[l:spacecolonspace+3:]
151 let l:value = l:value[:l:spacecolonspace-1]
155 let l:hidden = stridx(l:value, " (Hidden)")
156 if l:hidden != -1
157 let l:menu .= " (Hidden)"
158 let l:value = l:value[:l:hidden-1]
162 if l:value == "Pattern"
163 let l:value = l:menu
164 let l:pound = stridx(l:value, "#")
166 if l:pound != -1
167 let l:value = l:value[:l:pound-2]
173 if l:value[:strlen(a:base)-1] != a:base
180 let l:item = {
181 \ "word": l:value,
182 \ "menu": l:menu,
183 \ "info": l:input_line,
187 if complete_add(l:item) == 0
194 elseif l:input_line[:9] == "OVERLOAD: "
197 let l:value = l:input_line[10:]
198 let l:item = {
200 \ "menu": l:value,
201 \ "info": l:input_line,
205 if complete_add(l:item) == 0