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
d3423177
Commit
d3423177
authored
Mar 30, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly handling the odd edge-case when parsing terminal comments.
parent
140608f8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
document_parser.cpp
document_parser.cpp
+6
-1
No files found.
document_parser.cpp
View file @
d3423177
...
@@ -368,10 +368,15 @@ namespace Sass {
...
@@ -368,10 +368,15 @@ namespace Sass {
// block.has_rules_or_comments = true;
// block.has_rules_or_comments = true;
block
[
0
].
has_rules_or_comments
=
true
;
block
[
0
].
has_rules_or_comments
=
true
;
semicolon
=
true
;
semicolon
=
true
;
lex
<
exactly
<
';'
>
>
();
// ???
if
(
!
definition
&&
rule
[
1
].
eval_me
)
context
.
pending
.
push_back
(
rule
);
if
(
!
definition
&&
rule
[
1
].
eval_me
)
context
.
pending
.
push_back
(
rule
);
}
}
else
lex
<
exactly
<
';'
>
>
();
else
lex
<
exactly
<
';'
>
>
();
while
(
lex
<
block_comment
>
())
block
<<
Node
(
line_number
,
Node
::
comment
,
lexed
);
while
(
lex
<
block_comment
>
())
{
block
<<
Node
(
line_number
,
Node
::
comment
,
lexed
);
block
[
0
].
has_rules_or_comments
=
true
;
cerr
<<
"Parsing a terminal comment: "
<<
string
(
lexed
)
<<
endl
;
}
}
}
return
block
;
return
block
;
}
}
...
...
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