Lines Matching refs:pos
558 if opening.pos != -1
568 let nonspace = matchend(info.pline, '\S', opening.pos + 1) - 1
571 elseif closing.pos != -1
572 call cursor(info.plnum, closing.pos + 1)
726 function! s:IsAssignment(str, pos) abort argument
727 return strpart(a:str, 0, a:pos - 1) =~ '=\s*$'
866 let pos = match(line, '[][(){}]', 0)
871 while pos != -1
872 if !s:IsInStringOrComment(a:lnum, pos + 1)
873 if line[pos] == '('
874 call add(opening.parentheses, {'type': '(', 'pos': pos})
875 elseif line[pos] == ')'
877 call add(closing.parentheses, {'type': ')', 'pos': pos})
881 elseif line[pos] == '{'
882 call add(opening.braces, {'type': '{', 'pos': pos})
883 elseif line[pos] == '}'
885 call add(closing.braces, {'type': '}', 'pos': pos})
889 elseif line[pos] == '['
890 call add(opening.brackets, {'type': '[', 'pos': pos})
891 elseif line[pos] == ']'
893 call add(closing.brackets, {'type': ']', 'pos': pos})
900 let pos = match(line, '[][(){}]', pos + 1)
905 let rightmost_opening = {'type': '(', 'pos': -1}
906 let rightmost_closing = {'type': ')', 'pos': -1}
909 if opening.pos > rightmost_opening.pos
915 if closing.pos > rightmost_closing.pos