From 93e43a66dbb7e329bfa35d1f8d85ea24f9268eee Mon Sep 17 00:00:00 2001 From: xzyfer Date: Sun, 22 Feb 2015 15:30:26 +1100 Subject: [PATCH] Add support for -ms-calc --- constants.cpp | 1 + constants.hpp | 1 + parser.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/constants.cpp b/constants.cpp index dbddebb413..b2491c5449 100644 --- a/constants.cpp +++ b/constants.cpp @@ -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[] = "~="; diff --git a/constants.hpp b/constants.hpp index 9036ea035e..2b15bf158d 100644 --- a/constants.hpp +++ b/constants.hpp @@ -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[]; diff --git a/parser.cpp b/parser.cpp index 1344166cec..f1251d36af 100644 --- a/parser.cpp +++ b/parser.cpp @@ -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(); }