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
60e53749
Commit
60e53749
authored
Jun 14, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing a parser bug that was causing an infinite loop on malformed inputs.
parent
5e93024d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
document_parser.cpp
document_parser.cpp
+3
-2
No files found.
document_parser.cpp
View file @
60e53749
...
...
@@ -58,11 +58,12 @@ namespace Sass {
root
<<
parse_warning
();
if
(
!
lex
<
exactly
<
';'
>
>
())
throw_syntax_error
(
"top-level @warn directive must be terminated by ';'"
);
}
else
if
(
lex
<
spaces_and_comments
>
())
{
else
if
(
peek
<
spaces
>
()
||
peek
<
block_comment
>
()
||
peek
<
line_comment
>
())
{
lex
<
spaces_and_comments
>
();
continue
;
}
else
{
while
(
peek
<
spaces_and_comments
>
())
lex
<
spaces_and_comments
>
();
lex
<
spaces_and_comments
>
();
throw_syntax_error
(
"invalid top-level expression"
);
}
lex
<
optional_spaces
>
();
...
...
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