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
c0a68f4a
Commit
c0a68f4a
authored
Apr 22, 2012
by
Hampton Catlin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:hcatlin/libsass
parents
73c460a9
568999f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
118 deletions
+9
-118
document_parser.cpp
document_parser.cpp
+9
-4
grammer.txt
grammer.txt
+0
-114
No files found.
document_parser.cpp
View file @
c0a68f4a
...
...
@@ -436,7 +436,7 @@ namespace Sass {
}
Node
imported_tree
(
parse_import
());
if
(
imported_tree
.
type
==
Node
::
css_import
)
{
cerr
<<
"css import inside block"
<<
endl
;
//
cerr << "css import inside block" << endl;
block
<<
imported_tree
;
block
.
has_statements
=
true
;
}
...
...
@@ -710,15 +710,20 @@ namespace Sass {
{
if
(
lex
<
uri_prefix
>
())
{
lex
<
string_constant
>
();
Node
result
(
Node
::
uri
,
line_number
,
lexed
);
const
char
*
value
=
position
;
const
char
*
rparen
=
find_first
<
exactly
<
')'
>
>
(
position
);
if
(
!
rparen
)
syntax_error
(
"URI is missing ')'"
);
Token
contents
(
Token
::
make
(
value
,
rparen
));
// lex< string_constant >();
Node
result
(
Node
::
uri
,
line_number
,
contents
);
position
=
rparen
;
lex
<
exactly
<
')'
>
>
();
return
result
;
}
if
(
lex
<
value_schema
>
())
{
cerr
<<
"parsing value schema: "
<<
lexed
.
to_string
()
<<
endl
;
//
cerr << "parsing value schema: " << lexed.to_string() << endl;
Document
schema_doc
(
path
,
line_number
,
lexed
,
context
);
return
schema_doc
.
parse_value_schema
();
...
...
grammer.txt
deleted
100644 → 0
View file @
73c460a9
list -> comma_list
-> <nothing>
comma_list -> space_list [',' space_list]*
space_list -> expression expression*
expression -> term [['+' | '-'] term]*
term -> factor [['*' | '/'] factor]*
factor -> percentage | dimension | number | hex |
string_constant | identifier | variable
-> '(' list ')'
a b c d
comma_list
space_list
value
value
value
value
a (b, c) d
comma_list
space_list
value
value
list
comma_list
space_list
value
space_list
value
value
a b, c d
comma_list
space_list
value
value
space_list
value
value
a/b c
list
comma_list
space_list
value
term
division
value
value
value
(a/b)
list
comma_list
space_list
value
list
comma_list
space_list
value
term
division
value
value
\ 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