Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
ee2824ef
Commit
ee2824ef
authored
Jun 05, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Getting interpolated properties to work.
parent
7e6b3662
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
eval_apply.cpp
eval_apply.cpp
+4
-1
node_emitters.cpp
node_emitters.cpp
+5
-3
No files found.
eval_apply.cpp
View file @
ee2824ef
...
...
@@ -157,6 +157,8 @@ namespace Sass {
}
break
;
case
Node
:
:
rule
:
{
Node
lhs
(
expr
[
0
]);
if
(
lhs
.
should_eval
())
eval
(
lhs
,
prefix
,
env
,
f_env
,
new_Node
,
ctx
);
Node
rhs
(
expr
[
1
]);
if
(
rhs
.
type
()
==
Node
::
comma_list
||
rhs
.
type
()
==
Node
::
space_list
)
{
for
(
size_t
i
=
0
,
S
=
rhs
.
size
();
i
<
S
;
++
i
)
{
...
...
@@ -316,7 +318,8 @@ namespace Sass {
}
break
;
case
Node
:
:
string_schema
:
case
Node
:
:
value_schema
:
{
case
Node
:
:
value_schema
:
case
Node
:
:
identifier_schema
:
{
for
(
size_t
i
=
0
,
S
=
expr
.
size
();
i
<
S
;
++
i
)
{
expr
[
i
]
=
eval
(
expr
[
i
],
prefix
,
env
,
f_env
,
new_Node
,
ctx
);
}
...
...
node_emitters.cpp
View file @
ee2824ef
...
...
@@ -299,7 +299,8 @@ namespace Sass {
return
"!important"
;
}
break
;
case
value_schema
:
{
case
value_schema
:
case
identifier_schema
:
{
string
result
;
for
(
size_t
i
=
0
,
S
=
size
();
i
<
S
;
++
i
)
result
+=
at
(
i
).
to_string
();
return
result
;
...
...
@@ -381,8 +382,9 @@ namespace Sass {
case
rule
:
{
buf
<<
endl
<<
string
(
2
*
depth
,
' '
);
at
(
0
).
emit_nested_css
(
buf
,
depth
);
// property
at
(
1
).
emit_nested_css
(
buf
,
depth
);
// values
buf
<<
to_string
();
// at(0).emit_nested_css(buf, depth); // property
// at(1).emit_nested_css(buf, depth); // values
buf
<<
";"
;
}
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment