Skip to content

Commit

Permalink
Merge changes PR 119 to allow @elseif and no space between @if and th…
Browse files Browse the repository at this point in the history
…e bracket
  • Loading branch information
richthegeek committed Jun 27, 2013
1 parent 6f37d47 commit 3ed6044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tree/SassIfNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/
class SassIfNode extends SassNode
{
const MATCH_IF = '/^@if\s+(.+)$/i';
const MATCH_ELSE = '/@else(\s+if\s+(.+))?/i';
const MATCH_IF = '/^@if\s*(.+)$/i';
const MATCH_ELSE = '/@else(\s*if\s*(.+))?/i';
const IF_EXPRESSION = 1;
const ELSE_IF = 1;
const ELSE_EXPRESSION = 2;
Expand Down

0 comments on commit 3ed6044

Please sign in to comment.