mirror of
https://github.com/less/less.js.git
synced 2026-01-22 13:48:03 -05:00
Fix #2242 - detect if less does not parse final character
This commit is contained in:
@@ -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;
|
||||
|
||||
1
test/less/errors/single-character.less
Normal file
1
test/less/errors/single-character.less
Normal file
@@ -0,0 +1 @@
|
||||
x
|
||||
2
test/less/errors/single-character.txt
Normal file
2
test/less/errors/single-character.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
ParseError: Unrecognised input. Possibly missing something in {path}single-character.less on line 1, column 2:
|
||||
1 x
|
||||
Reference in New Issue
Block a user