Skip to content

Commit

Permalink
[PHP] correctly unindent else if: followed by ?> (#1932)
Browse files Browse the repository at this point in the history
  • Loading branch information
keith-hall authored and wbond committed Jul 29, 2019
1 parent d22df90 commit f975c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PHP/Indentation Rules.tmPreferences
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
]]></string>

Expand Down

0 comments on commit f975c23

Please sign in to comment.