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
c455b21b
Commit
c455b21b
authored
Apr 23, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed incorrect fetching of union members in the unit math evaluator.
parent
161d1148
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
2 deletions
+10
-2
document_parser.cpp
document_parser.cpp
+0
-0
eval_apply.cpp
eval_apply.cpp
+2
-2
prelexer.cpp
prelexer.cpp
+7
-0
prelexer.hpp
prelexer.hpp
+1
-0
No files found.
document_parser.cpp
View file @
c455b21b
This diff is collapsed.
Click to expand it.
eval_apply.cpp
View file @
c455b21b
...
@@ -262,8 +262,8 @@ namespace Sass {
...
@@ -262,8 +262,8 @@ namespace Sass {
Node
accumulate
(
Node
::
Type
op
,
Node
&
acc
,
Node
&
rhs
,
vector
<
vector
<
Node
>*>&
registry
)
Node
accumulate
(
Node
::
Type
op
,
Node
&
acc
,
Node
&
rhs
,
vector
<
vector
<
Node
>*>&
registry
)
{
{
Node
lhs
(
acc
.
content
.
children
->
back
());
Node
lhs
(
acc
.
content
.
children
->
back
());
double
lnum
=
lhs
.
content
.
numeric_value
;
double
lnum
=
lhs
.
numeric_value
()
;
double
rnum
=
rhs
.
content
.
numeric_value
;
double
rnum
=
rhs
.
numeric_value
()
;
if
(
lhs
.
type
==
Node
::
number
&&
rhs
.
type
==
Node
::
number
)
{
if
(
lhs
.
type
==
Node
::
number
&&
rhs
.
type
==
Node
::
number
)
{
Node
result
(
acc
.
line_number
,
operate
(
op
,
lnum
,
rnum
));
Node
result
(
acc
.
line_number
,
operate
(
op
,
lnum
,
rnum
));
...
...
prelexer.cpp
View file @
c455b21b
...
@@ -80,7 +80,14 @@ namespace Sass {
...
@@ -80,7 +80,14 @@ namespace Sass {
exactly
<
'_'
>
>
>
>
(
src
);
exactly
<
'_'
>
>
>
>
(
src
);
}
}
// Match interpolant schemas
// Match interpolant schemas
const
char
*
identifier_schema
(
const
char
*
src
)
{
// follows this pattern: (x*ix*)+
return
one_plus
<
sequence
<
zero_plus
<
identifier
>
,
interpolant
,
zero_plus
<
identifier
>
>
>
(
src
);
}
const
char
*
value_schema
(
const
char
*
src
)
{
const
char
*
value_schema
(
const
char
*
src
)
{
// follows this pattern: ([xyz]*i[xyz]*)+
// follows this pattern: ([xyz]*i[xyz]*)+
return
one_plus
<
sequence
<
zero_plus
<
alternatives
<
identifier
,
percentage
,
dimension
,
hex
,
number
,
string_constant
>
>
,
return
one_plus
<
sequence
<
zero_plus
<
alternatives
<
identifier
,
percentage
,
dimension
,
hex
,
number
,
string_constant
>
>
,
...
...
prelexer.hpp
View file @
c455b21b
...
@@ -303,6 +303,7 @@ namespace Sass {
...
@@ -303,6 +303,7 @@ namespace Sass {
// Match a CSS identifier.
// Match a CSS identifier.
const
char
*
identifier
(
const
char
*
src
);
const
char
*
identifier
(
const
char
*
src
);
// Match interpolant schemas
// Match interpolant schemas
const
char
*
identifier_schema
(
const
char
*
src
);
const
char
*
value_schema
(
const
char
*
src
);
const
char
*
value_schema
(
const
char
*
src
);
// Match CSS '@' keywords.
// Match CSS '@' keywords.
const
char
*
at_keyword
(
const
char
*
src
);
const
char
*
at_keyword
(
const
char
*
src
);
...
...
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