mirror of
https://github.com/less/less.js.git
synced 2026-02-09 22:45:28 -05:00
getLocation() seems to return lines starting at 0, therefore we have to add 1.
This fixes the off-by-one bug, and is consistent with what is done at line 238 in 'parser.js'.
This commit is contained in:
committed by
Luke Page
parent
28424ed6b9
commit
fd7a829079
@@ -1068,7 +1068,7 @@ less.Parser = function Parser(env) {
|
||||
save();
|
||||
|
||||
if (env.dumpLineNumbers) {
|
||||
sourceLineNumber = getLocation(i, input).line;
|
||||
sourceLineNumber = getLocation(i, input).line + 1;
|
||||
sourceFileName = getFileName(env);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user