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
7a238d10
Commit
7a238d10
authored
Oct 15, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Couple of fixes.
parent
2e2d97a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
eval_apply.cpp
eval_apply.cpp
+2
-2
node.cpp
node.cpp
+3
-3
No files found.
eval_apply.cpp
View file @
7a238d10
...
...
@@ -107,8 +107,8 @@ namespace Sass {
// }
// expand the body with the newly expanded selector as the prefix
cerr
<<
"ORIGINAL SELECTOR:
\t
"
<<
expr
[
2
].
to_string
()
<<
endl
;
cerr
<<
"NORMALIZED SELECTOR:
\t
"
<<
normalize_selector
(
expr
[
2
],
new_Node
).
to_string
()
<<
endl
<<
endl
;
//
cerr << "ORIGINAL SELECTOR:\t" << expr[2].to_string() << endl;
//
cerr << "NORMALIZED SELECTOR:\t" << normalize_selector(expr[2], new_Node).to_string() << endl << endl;
expand
(
expr
[
1
],
expr
.
back
(),
env
,
f_env
,
new_Node
,
ctx
);
}
break
;
...
...
node.cpp
View file @
7a238d10
...
...
@@ -61,7 +61,6 @@ namespace Sass {
string
Node
::
unquote
()
const
{
Type
t
=
type
();
switch
(
type
())
{
case
string_constant
:
...
...
@@ -196,7 +195,8 @@ namespace Sass {
}
// comparing identifiers and strings (treat them as comparable)
else
if
(
is_string
()
&&
rhs
.
is_string
())
{
else
if
((
is_string
()
&&
rhs
.
is_string
())
||
(
lhs_type
==
value
&&
rhs_type
==
value
))
{
return
unquote
()
<
rhs
.
unquote
();
}
...
...
@@ -225,7 +225,7 @@ namespace Sass {
case
simple_selector_sequence
:
case
attribute_selector
:
case
functional_pseudo
:
case
pseudo_n
ot
:
{
case
pseudo_n
egation
:
{
return
lexicographical_compare
(
begin
(),
end
(),
rhs
.
begin
(),
rhs
.
end
());
}
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