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
c60e12c2
Commit
c60e12c2
authored
Apr 03, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Parsing function calls.
parent
8360fd9c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
document.hpp
document.hpp
+2
-1
document_parser.cpp
document_parser.cpp
+15
-2
node.hpp
node.hpp
+1
-0
No files found.
document.hpp
View file @
c60e12c2
...
...
@@ -112,7 +112,7 @@ namespace Sass {
Node
parse_mixin_parameters
();
Node
parse_parameter
();
Node
parse_mixin_call
();
Node
parse_
mixin_
arguments
();
Node
parse_arguments
();
Node
parse_argument
();
Node
parse_assignment
();
Node
parse_ruleset
(
bool
definition
=
false
);
...
...
@@ -135,6 +135,7 @@ namespace Sass {
Node
parse_value
();
Node
parse_identifier
();
Node
parse_variable
();
Node
parse_function_call
();
const
char
*
look_for_rule
(
const
char
*
start
=
0
);
const
char
*
look_for_values
(
const
char
*
start
=
0
);
...
...
document_parser.cpp
View file @
c60e12c2
...
...
@@ -94,13 +94,13 @@ namespace Sass {
lex
<
include
>
();
lex
<
identifier
>
();
Node
name
(
Node
::
identifier
,
line_number
,
lexed
);
Node
args
(
parse_
mixin_
arguments
());
Node
args
(
parse_arguments
());
Node
call
(
Node
::
expansion
,
line_number
,
3
);
call
<<
name
<<
args
;
return
call
;
}
Node
Document
::
parse_
mixin_
arguments
()
Node
Document
::
parse_arguments
()
{
Node
args
(
Node
::
arguments
,
line_number
);
if
(
lex
<
exactly
<
'('
>
>
())
{
...
...
@@ -539,6 +539,9 @@ namespace Sass {
return
result
;
}
if
(
peek
<
functional
>
())
{
return
parse_function_call
();
}
if
(
lex
<
identifier
>
())
{
return
Node
(
Node
::
identifier
,
line_number
,
lexed
);
}
...
...
@@ -565,6 +568,16 @@ namespace Sass {
}
}
Node
Document
::
parse_function_call
()
{
lex
<
identifier
>
();
Node
name
(
Node
::
identifier
,
line_number
,
lexed
);
Node
args
(
parse_arguments
());
Node
call
(
Node
::
function_call
,
line_number
,
2
);
call
<<
name
<<
args
;
return
call
;
}
Node
Document
::
parse_identifier
()
{
lex
<
identifier
>
();
return
Node
(
Node
::
identifier
,
line_number
,
lexed
);
...
...
node.hpp
View file @
c60e12c2
...
...
@@ -63,6 +63,7 @@ namespace Sass {
number
,
numeric_color
,
function_call
,
mixin
,
parameters
,
expansion
,
...
...
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