Skip to content

Commit

Permalink
Fix parsing of url with quoted argument
Browse files Browse the repository at this point in the history
Fixes #2243
  • Loading branch information
mgreter authored and xzyfer committed Dec 28, 2016
1 parent b7b1276 commit 0576927
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
23 changes: 13 additions & 10 deletions src/prelexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,16 +243,19 @@ namespace Sass {
exactly <'l'>,
exactly <'('>,
W,
non_greedy<
alternatives<
class_char< real_uri_chars >,
uri_character,
NONASCII,
ESCAPE
>,
alternatives<
sequence < W, exactly <')'> >,
exactly< hash_lbrace >
alternatives<
quoted_string,
non_greedy<
alternatives<
class_char< real_uri_chars >,
uri_character,
NONASCII,
ESCAPE
>,
alternatives<
sequence < W, exactly <')'> >,
exactly< hash_lbrace >
>
>
>
>(src);
Expand Down
3 changes: 2 additions & 1 deletion src/sass2scss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,8 @@ namespace Sass
sass.substr(pos_left, 5) == "@warn" ||
sass.substr(pos_left, 6) == "@debug" ||
sass.substr(pos_left, 6) == "@error" ||
sass.substr(pos_left, 8) == "@charset"
sass.substr(pos_left, 8) == "@charset" ||
sass.substr(pos_left, 10) == "@namespace"
) { sass = indent + sass.substr(pos_left); }
// replace some specific sass shorthand directives (if not fallowed by a white space character)
else if (sass.substr(pos_left, 1) == "=")
Expand Down

0 comments on commit 0576927

Please sign in to comment.