Properly handle hard tabs in the indented syntax (#241)

Closes #87
This commit is contained in:
Natalie Weizenbaum 2018-03-01 18:59:58 -08:00 committed by GitHub
parent 0cbbb9128d
commit 7d89ad0c1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
## 1.0.0-beta.5.3
* Support hard tabs in the indented syntax.
* Don't deadlock on `/*` comments in the indented syntax.
* Don't add an extra `*/` to comments in the indented syntax that already have

View File

@ -377,7 +377,7 @@ class SassParser extends StylesheetParser {
position: scanner.position - scanner.column,
length: scanner.column);
}
} else if (_spaces == false) {
} else if (containsSpace && _spaces == false) {
scanner.error("Expected tabs, was spaces.",
position: scanner.position - scanner.column, length: scanner.column);
}