Lines Matching refs:opening
187 " Check if line 'lnum' has more opening brackets than closing ones.
189 let opening = {'parentheses': [], 'braces': [], 'brackets': []}
195 " Save any encountered opening brackets, and remove them once a matching
201 call add(opening.parentheses, {'type': '(', 'pos': pos})
203 if empty(opening.parentheses)
206 let opening.parentheses = opening.parentheses[0:-2]
209 call add(opening.braces, {'type': '{', 'pos': pos})
211 if empty(opening.braces)
214 let opening.braces = opening.braces[0:-2]
217 call add(opening.brackets, {'type': '[', 'pos': pos})
219 if empty(opening.brackets)
222 let opening.brackets = opening.brackets[0:-2]
231 " both opening and closing cases
235 for opening in opening.parentheses + opening.braces + opening.brackets
236 if opening.pos > rightmost_opening.pos
237 let rightmost_opening = opening
340 " If the previous line ended with a block opening, add a level of indent.
348 let [opening, closing] = s:ExtraBrackets(lnum)
350 if opening.pos != -1
351 if opening.type == '(' && searchpair('(', '', ')', 'bW', s:skip_expr) > 0
358 let nonspace = matchend(line, '\S', opening.pos + 1) - 1