mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Sass] Support some CSS hacks that use invalid CSS.
This commit is contained in:
parent
cbcbe3a3ee
commit
8951d633a4
1 changed files with 12 additions and 3 deletions
|
@ -166,7 +166,8 @@ module Sass
|
||||||
end
|
end
|
||||||
|
|
||||||
def selector
|
def selector
|
||||||
return unless simple_selector_sequence
|
# The combinator here allows the "> E" hack
|
||||||
|
return unless combinator || simple_selector_sequence
|
||||||
simple_selector_sequence while combinator
|
simple_selector_sequence while combinator
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
@ -182,7 +183,9 @@ module Sass
|
||||||
return expr
|
return expr
|
||||||
end
|
end
|
||||||
|
|
||||||
nil while tok(:hash) || class_expr || attrib || negation || pseudo
|
# The raw('*') allows the "E*" hack
|
||||||
|
nil while tok(:hash) || class_expr || attrib ||
|
||||||
|
negation || pseudo || raw('*')
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -264,7 +267,13 @@ module Sass
|
||||||
end
|
end
|
||||||
|
|
||||||
def declaration
|
def declaration
|
||||||
return unless name = property
|
# The raw('*') allows the "*prop: val" hack
|
||||||
|
if raw '*'
|
||||||
|
name = expr!(:property)
|
||||||
|
else
|
||||||
|
return unless name = property
|
||||||
|
end
|
||||||
|
|
||||||
raw! ':'; ss
|
raw! ':'; ss
|
||||||
value = str do
|
value = str do
|
||||||
expr! :expr
|
expr! :expr
|
||||||
|
|
Loading…
Add table
Reference in a new issue