mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Merge branch 'stable'
Conflicts: doc-src/SASS_CHANGELOG.md
This commit is contained in:
commit
96c0a405ed
2 changed files with 16 additions and 1 deletions
|
@ -664,6 +664,13 @@ and the hex representation (shortened to the three-letter version if possible).
|
|||
and `tealbang(12)` now renders as `tealbang(12)`
|
||||
rather than `teal bang(12)`.
|
||||
|
||||
## 2.2.24 (Unreleased)
|
||||
|
||||
* Parent references -- the `&` character --
|
||||
may only be placed at the beginning of simple selector sequences in Sass 3.
|
||||
Placing them elsewhere is deprecated in 2.2.24 and will print a warning.
|
||||
For example, `foo &.bar` is allowed, but `foo .bar&` is not.
|
||||
|
||||
## 2.2.23
|
||||
|
||||
[Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.23).
|
||||
|
|
|
@ -289,7 +289,15 @@ module Sass::Tree
|
|||
while scanner.rest?
|
||||
rules.last << scanner.scan(/[^",&]*/)
|
||||
case scanner.scan(/./)
|
||||
when '&'; rules.last << :parent
|
||||
when '&'
|
||||
warn <<END unless rules.last.empty? || rules.last.last =~ /(^|\s)$/
|
||||
DEPRECATION WARNING:
|
||||
On line #{@line}#{" of '#{@filename}'" if @filename}
|
||||
In Sass 3, parent selectors will only be able to appear
|
||||
at the beginning of simple selector sequences.
|
||||
For example, ".foo &.bar" is allowed but ".bar&" is not.
|
||||
END
|
||||
rules.last << :parent
|
||||
when ','
|
||||
scanner.scan(/\s*/)
|
||||
if scanner.rest?
|
||||
|
|
Loading…
Add table
Reference in a new issue