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
3aa81584
Commit
3aa81584
authored
Apr 18, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keeping track of the filename when parsing interpolants.
parent
526766a4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
document.cpp
document.cpp
+2
-2
document.hpp
document.hpp
+1
-1
document_parser.cpp
document_parser.cpp
+1
-1
No files found.
document.cpp
View file @
3aa81584
...
...
@@ -100,8 +100,8 @@ namespace Sass {
++
context
.
ref_count
;
}
Document
::
Document
(
size_t
line_number
,
Token
t
,
Context
&
context
)
:
path
(
string
()
),
Document
::
Document
(
const
string
&
path
,
size_t
line_number
,
Token
t
,
Context
&
context
)
:
path
(
path
),
source
(
const_cast
<
char
*>
(
t
.
begin
)),
position
(
t
.
begin
),
end
(
t
.
end
),
...
...
document.hpp
View file @
3aa81584
...
...
@@ -30,7 +30,7 @@ namespace Sass {
Document
(
char
*
path_str
,
char
*
source_str
,
Context
&
ctx
);
Document
(
string
path
,
char
*
source
=
0
);
Document
(
string
path
,
Context
&
context
);
Document
(
size_t
line_number
,
Token
t
,
Context
&
context
);
Document
(
const
string
&
path
,
size_t
line_number
,
Token
t
,
Context
&
context
);
~
Document
();
template
<
prelexer
mx
>
...
...
document_parser.cpp
View file @
3aa81584
...
...
@@ -720,7 +720,7 @@ namespace Sass {
if
(
lex
<
interpolant
>
())
{
Token
insides
(
Token
::
make
(
lexed
.
begin
+
2
,
lexed
.
end
-
1
));
Document
interp
(
line_number
,
insides
,
context
);
Document
interp
(
path
,
line_number
,
insides
,
context
);
return
interp
.
parse_list
();
}
...
...
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