Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly reset variables in the loop in _peekIndentation() #1288

Merged
merged 2 commits into from Apr 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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