Lines Matching refs:vcol

68 "   vcol: integer -- the virtual column of the first character of the token
71 " vcol: integer
74 " " vcol: 0 45 89
76 function! s:CalcVCol(line, first_index, last_index, vcol, tabstop) argument
85 let vcol = a:vcol
92 " vcol + tab -> next_vcol
101 let vcol = (vcol / a:tabstop + (next_i - i)) * a:tabstop
102 call s:Log('new vcol after tab: '. vcol)
105 let vcol += next_i - i
106 call s:Log('new vcol after other: '. vcol)
111 return vcol
122 " indtoken = [token, vcol, col]
124 " vcol = integer (the virtual column of the first character of the token;
132 let vcol = 0 " The virtual column of the current character
141 let vcol = s:CalcVCol(a:line, 0, i - 1, 0, a:tabstop)
142 call add(indtokens, ['<string_end>', vcol, i])
150 let vcol = s:CalcVCol(a:line, 0, i - 1, 0, a:tabstop)
151 call add(indtokens, ['<quoted_atom_end>', vcol, i])
168 let next_vcol = (vcol / a:tabstop + (next_i - i)) * a:tabstop
178 call add(indtokens, ['<string_start>', vcol, i])
180 let next_vcol = s:CalcVCol(a:line, i, next_i - 1, vcol, a:tabstop)
181 call add(indtokens, ['<string>', vcol, i])
188 call add(indtokens, ['<quoted_atom_start>', vcol, i])
190 let next_vcol = s:CalcVCol(a:line, i, next_i - 1, vcol, a:tabstop)
191 call add(indtokens, ['<quoted_atom>', vcol, i])
199 call add(indtokens, [a:line[(i):(next_i - 1)], vcol, i])
203 call add(indtokens, ['$.', vcol, i])
213 call add(indtokens, ['<end_of_clause>', vcol, i])
219 call add(indtokens, ['.', vcol, i])
227 call add(indtokens, [a:line[i], vcol, i])
233 call add(indtokens, [a:line[i : i + 1], vcol, i])
241 call add(indtokens, [a:line[i : i + 1], vcol, i])
246 call add(indtokens, [a:line[i], vcol, i])
252 let vcol += next_i - i
254 let vcol = next_vcol