Lines Matching full:if
8 if exists("b:did_indent")
12 if exists("*BitbakeIndent")
24 if len(stack) == 0
45 " If this line is explicitly joined: If the previous line was also joined,
47 if getline(a:lnum - 1) =~ '\\$'
48 if a:lnum > 1 && getline(a:lnum - 2) =~ '\\$'
54 " If the start of the line is in a string don't change the indent.
55 if has('syntax_items')
63 if plnum == 0
71 " timeout, so let the user disable this feature if he doesn't need it
74 if disable_parentheses_indenting == 1
83 " If the previous line is inside parenthesis, use the indent of the starting
92 if parlnum > 0
94 " If so, ignore it here - it will be handled later.
95 if s:is_bb_python_func_def(parlnum)
108 " When inside parenthesis: If at the first line below the parenthesis add
119 if p > 0
120 if s:is_bb_python_func_def(p)
122 if p == plnum
128 if line =~ '^\s*}'
135 if p == plnum
142 if pp > 0
147 if plnumstart == p
161 if has('syntax_items')
162 " If the last character in the line is a comment, do a binary search for
165 if synIDattr(synID(plnum, pline_len, 1), "name") =~ "\\(Comment\\|Todo\\)$"
170 if synIDattr(synID(plnum, col, 1), "name") =~ "\\(Comment\\|Todo\\)$"
181 if pline[col] == '#'
189 " If the previous line ended with a colon, indent this line
190 if pline =~ ':\s*$'
194 " If the previous line was a stop-execution statement...
196 if getline(plnum) =~ '^\s*\(break\|continue\|raise\|return\|pass\|bb\.fatal\)\>'
197 " See if the user has already dedented
198 if indent(a:lnum) > indent(plnum) - shiftwidth()
199 " If not, recommend one dedent
206 " If the current line begins with a keyword that lines up with "try"
207 if getline(a:lnum) =~ '^\s*\(except\|finally\)\>'
210 if getline(lnum) =~ '^\s*\(try\|except\)\>'
212 if ind >= indent(a:lnum)
222 " If the current line begins with a header keyword, dedent
223 if getline(a:lnum) =~ '^\s*\(elif\|else\)\>'
226 if getline(plnumstart) =~ '^\s*\(for\|if\|try\)\>'
231 if indent(a:lnum) <= plindent - shiftwidth()
242 if parlnum > 0
261 if !has('syntax_items')
266 if len(stack) == 0
280 if name == "bbVarValue"
286 if getline(a:lnum) =~ '^\s*"$'
291 if len(prevstack) == 0
297 " Only indent if there was actually a continuation character on
303 if index(["bbVarDef", "bbVarFlagDef"], prevname) != -1
304 if prev_continued
309 if !prev_continued
317 if index(["bbPyDefRegion", "bbPyFuncRegion"], name) != -1
321 if ret == 0
333 if name == "bbShFuncRegion"