diff --git a/PHP/Indentation Rules.tmPreferences b/PHP/Indentation Rules.tmPreferences index 252571c971..c107d37781 100644 --- a/PHP/Indentation Rules.tmPreferences +++ b/PHP/Indentation Rules.tmPreferences @@ -18,7 +18,7 @@ \s* [}\])] # optionally followed by whitespace, followed by a closing: curly brace, square bracket or paren | # OR \s* (<\?(php)?\s+)? # an optional PHP open tag - (else(if)?\b.*:\s*($|//|/\*)|(end(if|for(each)?|switch|while))\b) # followed by an keyword that ends a control flow block + (else(\s*if)?\b.*:\s*($|//|/\*|\?>)|(end(if|for(each)?|switch|while))\b) # followed by an keyword that ends a control flow block ) ]]>