Skip to content

Commit

Permalink
Merge pull request #900 from xzyfer/feat/ms-calc
Browse files Browse the repository at this point in the history
Add support for -ms-calc
  • Loading branch information
xzyfer committed Feb 22, 2015
2 parents 1f40bf4 + 93e43a6 commit 9405fe0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions constants.cpp
Expand Up @@ -76,6 +76,7 @@ namespace Sass {
extern const char calc_kwd[] = "calc(";
extern const char moz_calc_kwd[] = "-moz-calc(";
extern const char webkit_calc_kwd[] = "-webkit-calc(";
extern const char ms_calc_kwd[] = "-ms-calc(";

// css attribute-matching operators
extern const char tilde_equal[] = "~=";
Expand Down
1 change: 1 addition & 0 deletions constants.hpp
Expand Up @@ -78,6 +78,7 @@ namespace Sass {
extern const char calc_kwd[];
extern const char moz_calc_kwd[];
extern const char webkit_calc_kwd[];
extern const char ms_calc_kwd[];

// css attribute-matching operators
extern const char tilde_equal[];
Expand Down
1 change: 1 addition & 0 deletions parser.cpp
Expand Up @@ -1103,6 +1103,7 @@ namespace Sass {
}
else if (peek< exactly< calc_kwd > >() ||
peek< exactly< moz_calc_kwd > >() ||
peek< exactly< ms_calc_kwd > >() ||
peek< exactly< webkit_calc_kwd > >()) {
return parse_calc_function();
}
Expand Down

0 comments on commit 9405fe0

Please sign in to comment.