diff --git a/CHANGELOG.md b/CHANGELOG.md index 97692974d..0f40f863d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,12 @@ -## 1.32.10 +## 1.32.11 * No user-visible changes. +## 1.32.10 + +* Fix a bug where bogus indented syntax errors were reported for lines that + contained only whitespace. + ## 1.32.9 * Fix a typo in a deprecation warning. diff --git a/lib/src/parse/sass.dart b/lib/src/parse/sass.dart index 006554553..db03e8949 100644 --- a/lib/src/parse/sass.dart +++ b/lib/src/parse/sass.dart @@ -408,10 +408,14 @@ class SassParser extends StylesheetParser { scanner.error("Expected newline.", position: scanner.position); } - var containsTab = false; - var containsSpace = false; - var nextIndentation = 0; + late bool containsTab; + late bool containsSpace; + late int nextIndentation; do { + containsTab = false; + containsSpace = false; + nextIndentation = 0; + while (true) { var next = scanner.peekChar(); if (next == $space) { diff --git a/pubspec.yaml b/pubspec.yaml index a0b1d49d7..fbac65f22 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: sass -version: 1.32.10 +version: 1.32.11 description: A Sass implementation in Dart. author: Sass Team homepage: https://github.com/sass/dart-sass