Lines Matching refs:line
83 … \ 'index(map('.string(s:syng_strcom).',"hlID(''ruby''.v:val)"), synID(line("."),col("."),1)) >= 0'
85 " Regex used for words that, at the start of a line, add a level of indent.
93 " Regex used for words that, at the start of a line, remove a level of indent.
99 " TODO: the do here should be restricted somewhat (only at end of line)?
184 " For the current line, use the first argument if given, else v:lnum
191 " 2.2. Work on the current line {{{2
213 " 2.3. Work on the previous line. {{{2
217 " line inside a string. And that call can be quite expensive in that
233 " Previous line number
259 " 2.4. Work on the MSL line. {{{2
267 " Most Significant line based on the previous one -- in case it's a
283 " By default, just return the previous line's indent
294 " If this line is an access modifier keyword, align according to the closest
318 " If we got a closing bracket on an empty line, find its match and indent
320 " others we indent to the containing line's MSL's level. Return -1 if fail.
333 let ind = indent(line('.'))
336 let ind = indent(line('.'))
338 let ind = indent(s:GetMSL(line('.')))
366 let msl = s:GetMSL(line('.'))
367 let line = getline(line('.'))
369 if s:IsAssignment(line, col('.')) &&
370 \ strpart(line, col('.') - 1, 2) !~ 'do'
371 " assignment to case/begin/etc, on the same line
377 let ind = indent(line('.'))
380 " align to line of the "do", not to the MSL
381 let ind = indent(line('.'))
383 " in the case of assignment to the MSL, align to the starting line,
385 let ind = indent(line('.'))
400 " If we are in a multi-line string or line-comment, don't do anything to it.
422 " If the current line starts with a leading operator, add a level of indent.
430 " If the line is empty and inside a string (the previous line is a string,
431 " too), use the previous line's indent
457 " If the previous line was a private/protected keyword, add a
463 " If the previous line was a private/protected/public keyword, add
504 " If the previous line ended with a block opening, add a level of indent.
513 " in the case of assignment to the msl, align to the starting line,
528 " If the previous line started with a leading operator, use its MSL's level
539 " If the previous line ended with the "*" of a splat, add a level of indent
549 " If the previous line contained unclosed opening brackets and we are still
575 if s:Match(line('.'), s:ruby_indent_keywords)
578 return indent(s:GetMSL(line('.')))
590 " If the previous line ended with an "end", match that "end"s beginning's
597 let n = line('.')
639 " If the previous line wasn't a MSL
641 " If previous line ends bracket and begins non-bracket continuation decrease indent by 1.
645 " If previous line is a continuation return its indent.
656 " If the MSL line had an indenting keyword in it, add a level of indent.
681 " If the previous line ended with [*+/.,-=], but wasn't a block ending or a
730 " Find line above 'lnum' that isn't empty, in a comment, or in a string.
736 " If the line isn't empty (with opt. comment) or in a string, end search.
737 let line = getline(lnum)
738 if line =~ '^=begin'
744 elseif !in_block && line =~ '^=end'
746 elseif !in_block && line !~ '^\s*#.*$' && !(s:IsInStringOrComment(lnum, 1)
747 \ && s:IsInStringOrComment(lnum, strlen(line)))
755 " Find line above 'lnum' that started the continuation 'lnum' may be part of.
757 " Start on the line we're at and use its indent.
761 " If we have a continuation line, or we're in a string, use line as MSL.
763 let line = getline(lnum)
767 " If the current line doesn't end in a backslash, but the previous one
768 " does, look for that line's msl
776 " If the current line starts with a leading operator, keep its indent
780 " If the above line looks like the "*" of a splat, use the current one's
791 " If the current line is a non-bracket continuation and so is the
802 " If the current line is a bracket continuation or a block-starter, but
803 " the previous is a dot, keep going to see if the previous line is the
814 " If the current line is a bracket continuation or a block-starter, but
837 " If the previous line is a block-starter and the current one is
846 let col = match(line, s:continuation_regex) + 1
848 \ || s:IsInString(lnum, strlen(line))
860 " Check if line 'lnum' has more opening brackets than closing ones.
865 let line = getline(a:lnum)
866 let pos = match(line, '[][(){}]', 0)
873 if line[pos] == '('
875 elseif line[pos] == ')'
881 elseif line[pos] == '{'
883 elseif line[pos] == '}'
889 elseif line[pos] == '['
891 elseif line[pos] == ']'
900 let pos = match(line, '[][(){}]', pos + 1)
924 let line = getline(a:lnum)
925 let offset = match(line, '\C'.a:regex)
929 let offset = match(line, '\C'.a:regex, offset + 1)
940 " Locates the containing class/module's definition line, ignoring nested classes
949 let found_lnum = line('.')