Skip to content

Commit

Permalink
Merge pull request #2858 from zzzzBov/patch-1
Browse files Browse the repository at this point in the history
Fix AST to include text for single line comments
  • Loading branch information
seven-phases-max committed Mar 31, 2016
2 parents 5bf6329 + 7853edc commit f4957bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/less/parser/parser-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = function() {
nextNewLine = endIndex;
}
parserInput.i = nextNewLine;
comment.text = inp.substr(comment.i, parserInput.i - comment.i);
comment.text = inp.substr(comment.index, parserInput.i - comment.index);
parserInput.commentStore.push(comment);
continue;
} else if (nextChar === '*') {
Expand Down

0 comments on commit f4957bd

Please sign in to comment.