diff --git a/doc-src/SASS_CHANGELOG.md b/doc-src/SASS_CHANGELOG.md index dc8dc7ac2a..fe4de7e6ed 100644 --- a/doc-src/SASS_CHANGELOG.md +++ b/doc-src/SASS_CHANGELOG.md @@ -7,21 +7,23 @@ ### Backwards Incompatibilities -- Must Read! -Certain ways of using `#{}` without quotes in property and variable values, -which were deprecated in version 3.4.20, have been removed entirely in order to -simplify the feature. +* Certain ways of using `#{}` without quotes in property and variable values, + which were deprecated in version 3.4.20, have been removed entirely in order + to simplify the feature. -Previously, `#{}` behaved unpredictably. If it was used near operators, it would -cause those operators to become part of an unquoted string instead of having -their normal meaning. This wan't an especially useful feature, and it made it -hard to reason about some code that included `#{}`. + Previously, `#{}` behaved unpredictably. If it was used near operators, it + would cause those operators to become part of an unquoted string instead of + having their normal meaning. This wan't an especially useful feature, and it + made it hard to reason about some code that included `#{}`. -Now `#{}` just returns an unquoted string that acts like any other unquoted -string. For example, `foo + #{$var}` does the same thing as `foo + $var`, -instead of doing the same thing as `unquote("foo + #{$var}")`. + Now `#{}` just returns an unquoted string that acts like any other unquoted + string. For example, `foo + #{$var}` does the same thing as `foo + $var`, + instead of doing the same thing as `unquote("foo + #{$var}")`. -For more details, see [this blog post][interp-blog] and -[the GitHub issue in which it was planned][interp-issue]. + For more details, see [this blog post][interp-blog] and + [the GitHub issue in which it was planned][interp-issue]. + +* The reference combinator, `/foo/` is no longer supported. ## 3.5.0 diff --git a/lib/sass/scss/static_parser.rb b/lib/sass/scss/static_parser.rb index 8dcb791291..234847ce48 100644 --- a/lib/sass/scss/static_parser.rb +++ b/lib/sass/scss/static_parser.rb @@ -135,23 +135,7 @@ def selector end def combinator - tok(PLUS) || tok(GREATER) || tok(TILDE) || reference_combinator - end - - def reference_combinator - return unless tok(%r{/}) - res = '/' - ns, name = expr!(:qualified_name) - res << ns << '|' if ns - res << name << tok!(%r{/}) - - location = " of #{@filename}" if @filename - Sass::Util.sass_warn < .bap .foo', '.grip > .bap .bar {@extend .foo}', '.bip > .bap .foo, .bip > .bap .grip > .bap .bar, .grip > .bap .bip > .bap .bar') diff --git a/test/sass/scss/css_test.rb b/test/sass/scss/css_test.rb index 7d0ecebe6d..522a025000 100755 --- a/test/sass/scss/css_test.rb +++ b/test/sass/scss/css_test.rb @@ -805,11 +805,8 @@ def test_summarized_selectors_with_element assert_selector_parses('E > F') assert_selector_parses('E + F') assert_selector_parses('E ~ F') - silence_warnings {assert_selector_parses('E /foo/ F')} silence_warnings {assert_selector_parses('E! > F')} - silence_warnings {assert_selector_parses('E /ns|foo/ F')} - # From http://dev.w3.org/csswg/css-scoping-1/ assert_selector_parses('E:host(s)') assert_selector_parses('E:host-context(s)') @@ -1167,7 +1164,7 @@ def test_very_long_comment_doesnt_take_forever def test_long_unclosed_comment_doesnt_take_forever assert_raise_message(Sass::SyntaxError, - 'Invalid CSS after "/*": expected "/", was "//*************..."') {render(<