Skip to content

Commit 6012943

Browse files
andreypopptj
authored andcommitted
Use position.source for mapping lines
1 parent 0f123d1 commit 6012943

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
@@ -30,7 +30,7 @@ Compiler.prototype.emit = function(str, pos, startOnly) {
3030
line: this.position.line,
3131
column: Math.max(this.position.column - 1, 0)
3232
},
33-
source: 'source.css',
33+
source: pos.source || 'source.css',
3434
original: {
3535
line: pos.start.line,
3636
column: pos.start.column - 1

0 commit comments

Comments
 (0)