Skip to content

Commit 2b8c538

Browse files
andreypopptj
authored andcommitted
Use filename recorded in position
1 parent 67487c7 commit 2b8c538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Compiler.prototype.emit = function(str, pos, startOnly) {
4646
line: this.position.line,
4747
column: Math.max(this.position.column - 1, 0)
4848
},
49-
source: 'source.css',
49+
source: pos.source || 'source.css',
5050
original: {
5151
line: pos.end.line,
5252
column: pos.end.column - 1

0 commit comments

Comments
 (0)