Fix #2242 - detect if less does not parse final character

This commit is contained in:
Luke Page
2015-01-04 08:45:31 +00:00
parent 9e279a69d8
commit 10ea767708
3 changed files with 4 additions and 1 deletions

View File

@@ -239,7 +239,7 @@ module.exports = function() {
parserInput.end = function() {
var message,
isFinished = parserInput.i >= input.length - 1;
isFinished = parserInput.i >= input.length;
if (parserInput.i < furthest) {
message = furthestPossibleErrorMessage;

View File

@@ -0,0 +1 @@
x

View File

@@ -0,0 +1,2 @@
ParseError: Unrecognised input. Possibly missing something in {path}single-character.less on line 1, column 2:
1 x