Lines Matching refs:indent

1 " Vim indent file
12 " Only load this indent file when no other was loaded.
19 " Possible values: "normal", "indent", "outdent"
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.
145 " Regex that describes all indent access modifiers
148 " Regex that describes the indent access modifiers (excludes public)
205 let indent = call(function(callback_name), [indent_info])
207 if indent >= 0
208 " Decho "Match: ".callback_name." indent=".indent." info=".string(indent_info)
209 return indent
225 let indent = call(function(callback_name), [indent_info])
227 if indent >= 0
228 " Decho "Match: ".callback_name." indent=".indent." info=".string(indent_info)
229 return indent
251 let indent = call(function(callback_name), [indent_info])
253 if indent >= 0
254 " Decho "Match: ".callback_name." indent=".indent." info=".string(indent_info)
255 return indent
273 let indent = call(function(callback_name), [indent_info])
275 if indent >= 0
276 " Decho "Match: ".callback_name." indent=".indent." info=".string(indent_info)
277 return indent
283 " By default, just return the previous line's indent
285 return indent(indent_info.plnum)
296 if g:ruby_indent_access_modifier_style == 'indent'
300 return indent(class_lnum) + info.sw
307 return indent(class_lnum)
318 " If we got a closing bracket on an empty line, find its match and indent
319 " according to it. For parentheses we indent to its column - 1, for the
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('.')))
349 " If we have a =begin or =end set indent to first column.
359 " If we have a deindenting keyword, find its match and indent to its level.
373 " hanging indent
377 let ind = indent(line('.'))
381 let ind = indent(line('.'))
385 let ind = indent(line('.'))
388 let ind = indent(msl)
402 return indent(info.clnum)
411 " indent to 0.
422 " If the current line starts with a leading operator, add a level of indent.
424 return indent(s:GetMSL(a:cline_info.clnum)) + a:cline_info.sw
431 " too), use the previous line's indent
440 return indent(plnum)
446 " At the start of the file use zero indent.
456 if g:ruby_indent_access_modifier_style == 'indent'
458 " level of indent.
460 return indent(info.plnum) + info.sw
464 " a level of indent, since the keyword has been out-dented.
466 return indent(info.plnum) + info.sw
487 " hanging indent
491 let ind = indent(info.plnum)
494 let ind = indent(s:GetMSL(info.plnum))
504 " If the previous line ended with a block opening, add a level of indent.
508 let ind = indent(info.plnum) + info.sw
515 let ind = indent(info.plnum) + info.sw
517 let ind = indent(plnum_msl) + info.sw
529 " of indent
531 return indent(s:GetMSL(a:pline_info.plnum))
539 " If the previous line ended with the "*" of a splat, add a level of indent
541 return indent(info.plnum) + info.sw
550 " in them, find the rightmost one and add indent depending on the bracket
554 " match and indent according to that.
560 return indent(info.plnum) + info.sw
563 return indent(info.plnum) + info.sw
569 return nonspace > 0 ? nonspace : indent(info.plnum) + info.sw
576 return indent('.') + info.sw
578 return indent(s:GetMSL(line('.')))
591 " indent.
598 let ind = indent('.')
601 let ind = indent(msl)
617 " fails, we know that something is lacking an end and thus we indent a
620 let ind = indent('.')
623 " hanging indent
627 let ind = indent(info.plnum) + info.sw
641 " If previous line ends bracket and begins non-bracket continuation decrease indent by 1.
644 return indent(info.plnum) - 1
645 " If previous line is a continuation return its indent.
647 return indent(info.plnum)
656 " If the MSL line had an indenting keyword in it, add a level of indent.
661 let ind = indent(info.plnum_msl) + info.sw
666 " hanging indent
670 let ind = indent(info.plnum_msl) + info.sw
682 " closing bracket, indent one extra level.
685 let ind = indent(info.plnum_msl) + info.sw
687 let ind = indent(info.plnum_msl)
757 " Start on the line we're at and use its indent.
776 " If the current line starts with a leading operator, keep its indent
792 " previous one, keep its indent and continue looking for an MSL.