Lines Matching refs:line
51 " you would type at the BEGINNING of a line
72 " These are typically words that start a line.
84 " If a line has an extra "(" increase the indent
85 " If a line has an extra ")" decrease the indent
86 function! s:CountUnbalancedParen( line, paren_to_check ) argument
87 let l = a:line
89 let l = a:line
110 let line = getline(lnum)
121 " num_right_paren matches for this line
128 \ 's:IsColComment(line("."), col("."))')
139 " echom 'CTIRP - same line match, ignoring'
143 " echom 'CTIRP - match: ' . line(".") . ' ' . getline(".")
146 " echom 'CTIRP - if/while ignored: ' . line(".") . ' ' . getline(".")
187 \ 's:IsColComment(line("."), col(".")) == 1')
199 \ 's:IsColComment(line("."), col(".")) == 1')
212 " Check if the line is a comment
250 " Find correct indent of a new line based upon the previous line
255 " If the current line is a comment, leave the indent as is
262 " Get previous non-blank line
273 " If the previous line is a comment, then return -1
276 " But only if the next line is blank. This would be true if
286 " This is the line you just hit return on, it is not the current line
288 " Based on this line, we can determine how much to indent the new
289 " line
291 " Get default indent (from prev. line)
295 " Now check what's on the previous line to determine if the indent
301 " echom 'prevl - SQLBlockStart - indent ' . ind . ' line: ' . prevline
341 " This is a new blank line since we just typed a carriage return
342 " Check current line; search for simplistic matching start-of-block
343 let line = getline(v:lnum)
345 if line =~? '^\s*els'
346 " Any line when you type else will automatically back up one
350 elseif line =~? '^\s*end\>'
355 elseif line =~? '^\s*when\>'
363 " elseif line =~ '^\s*)\s*;\?\s*$'
364 " elseif line =~ '^\s*)'
365 elseif line =~ '^\s*)'
366 let num_unmatched_right = s:CountUnbalancedParen( line, ')' )
368 " If the line ends in a ), then reduce the indent
374 " But we do not want to unindent a line like:
377 " let num_unmatched_right = s:CountUnbalancedParen( line, ')' )
379 " elseif strpart( line, strlen(line)-1, 1 ) =~ ')'
381 if line =~ '^\s*)'