mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Sass] [Less] Use Haml::Util.haml_warn for warnings.
This commit is contained in:
parent
a57434b65f
commit
ccd373e393
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ module Less
|
||||||
else
|
else
|
||||||
sel = path.map {|e| e.sass_selector_str}.join(' ').gsub(' :', ':')
|
sel = path.map {|e| e.sass_selector_str}.join(' ').gsub(' :', ':')
|
||||||
if path[1..-1].any? {|e| e.selector !~ /^:{1,2}/} || path.first.selector !~ /^:{0,2}$/
|
if path[1..-1].any? {|e| e.selector !~ /^:{1,2}/} || path.first.selector !~ /^:{0,2}$/
|
||||||
warn <<WARNING
|
Haml::Util.haml_warn <<WARNING
|
||||||
WARNING: Sass doesn't support mixing in selector sequences.
|
WARNING: Sass doesn't support mixing in selector sequences.
|
||||||
Ignoring #{sel}
|
Ignoring #{sel}
|
||||||
WARNING
|
WARNING
|
||||||
|
@ -44,7 +44,7 @@ WARNING
|
||||||
|
|
||||||
module Accessor1
|
module Accessor1
|
||||||
def build(env)
|
def build(env)
|
||||||
warn <<WARNING
|
Haml::Util.haml_warn <<WARNING
|
||||||
WARNING: Sass doesn't support attribute accessors.
|
WARNING: Sass doesn't support attribute accessors.
|
||||||
Ignoring #{text_value}
|
Ignoring #{text_value}
|
||||||
WARNING
|
WARNING
|
||||||
|
|
Loading…
Add table
Reference in a new issue