Lines Matching refs:mid
1018 my ($head, $mid, $tail) = ($1, $3, $4);
1019 $keyword_opening_brace = $mid if $mid ne "=";
1021 push @in_if_hanging_offsets, $hanging_offset if $mid eq "if";
1029 if ($mid eq "while" && @in_do_hanging_offsets != 0) {
1037 …if (my ($head, $mid, $tail) = m/(^|^.*\W)(else|do)(\W.*|$)$/) { # last else/do, where 'do' is pref…
1039 report("code before '$mid'") if $code_before;
1040 …report("code after '$mid'" ) if $tail =~ m/[^\s\@{]/# trailing non-whitespace non-comment non-'{' …
1041 … && !($mid eq "else" && $tail =~ m/[\s@]*if(\W|$)/);
1042 if ($mid eq "do") { # workarounds for code before 'do'
1051 push @in_do_hanging_offsets, $hanging_offset if $mid eq "do";
1052 if ($code_before && $mid eq "do") {
1056 $keyword_opening_brace = $mid if $tail =~ m/\{/;
1155 …(my ($head, $mid, $tail) = ($contents_before_ =~ m/(^|^.*\W)(if|while|for|switch|do)(\W.*$|$)/))) {
1157 report("'{' not on same line as preceding '$mid'") if !$brace_after;