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
260bdb9c
Commit
260bdb9c
authored
Apr 18, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working on embedded interpolant parsing.
parent
8deb4b7d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletions
+30
-1
document_parser.cpp
document_parser.cpp
+27
-1
interpolation.scss
interpolation.scss
+3
-0
No files found.
document_parser.cpp
View file @
260bdb9c
...
@@ -670,10 +670,11 @@ namespace Sass {
...
@@ -670,10 +670,11 @@ namespace Sass {
return
result
;
return
result
;
}
}
if
(
lex
<
value_schema
>
())
if
(
peek
<
value_schema
>
())
{
{
// TO DO: handle value schemas!
// TO DO: handle value schemas!
return
Node
(
Node
::
identifier
,
line_number
,
lexed
);
return
Node
(
Node
::
identifier
,
line_number
,
lexed
);
return
parse_value_schema
();
}
}
if
(
lex
<
sequence
<
true_kwd
,
negate
<
identifier
>
>
>
())
if
(
lex
<
sequence
<
true_kwd
,
negate
<
identifier
>
>
>
())
...
@@ -733,6 +734,31 @@ namespace Sass {
...
@@ -733,6 +734,31 @@ namespace Sass {
syntax_error
(
"error reading values after "
+
lexed
.
to_string
());
syntax_error
(
"error reading values after "
+
lexed
.
to_string
());
}
}
// Node Document::parse_value_schema()
// {
// // just an interpolant
// if (lex< interpolant >()) {
// Token insides(Token::make(lexed.begin + 2, lexed.end - 1));
// Document interp_doc(path, line_number, insides, context);
// Node interp_node(interp_doc.parse_list());
// if (peek< alternatives< spaces, block_comment, line_comment
// exactly<';'>, exactly<','>,
// exactly<'('>, exactly<')'> > >()) {
// return interp_node;
// }
//
//
// Node schema(Node::value_schema, context.registry, 2);
//
// while (true) {
// if (lex< interpolant
//
//
//
//
//
// }
Node
Document
::
parse_function_call
()
Node
Document
::
parse_function_call
()
{
{
lex
<
identifier
>
();
lex
<
identifier
>
();
...
...
interpolation.scss
View file @
260bdb9c
...
@@ -8,4 +8,6 @@ div {
...
@@ -8,4 +8,6 @@ div {
d
:
type-of
(
false
);
d
:
type-of
(
false
);
e
:
type-of
(
fa
#{
lse
}
);
e
:
type-of
(
fa
#{
lse
}
);
e
:
12fa
#{
lse
}
345
;
e
:
12fa
#{
lse
}
345
;
f
:
12
+
#{
3
}
,
12
(
#{
3
}
);
g
:
(
12
)
34
,
12
(
34
);
}
}
\ No newline at end of file
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