Skip to content

Commit

Permalink
Properly reset variables in the loop in _peekIndentation() (#1288)
Browse files Browse the repository at this point in the history
Closes #1287
  • Loading branch information
nex3 committed Apr 19, 2021
1 parent 1e14b3e commit 45c1333
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
7 changes: 6 additions & 1 deletion 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.
Expand Down
10 changes: 7 additions & 3 deletions lib/src/parse/sass.dart
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down

0 comments on commit 45c1333

Please sign in to comment.