From b3c9e7b00f05681e005933822425ded6dadcf513 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Wed, 26 Sep 2018 14:32:55 -0400 Subject: [PATCH] Fix a parsing bug involving nested content blocks (#483) Closes #482 --- CHANGELOG.md | 3 +++ lib/src/parse/stylesheet.dart | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c8c331d..1a826c13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## 1.14.1 +* Properly parse property declarations that are both *in* content blocks and + written *after* content blocks. + ### Command-Line Interface * Print more readable paths in `--watch` mode. diff --git a/lib/src/parse/stylesheet.dart b/lib/src/parse/stylesheet.dart index 4687a385..8ccaffda 100644 --- a/lib/src/parse/stylesheet.dart +++ b/lib/src/parse/stylesheet.dart @@ -896,9 +896,10 @@ abstract class StylesheetParser extends Parser { List children; if (lookingAtChildren()) { + var wasInContentBlock = _inContentBlock; _inContentBlock = true; children = this.children(_statement); - _inContentBlock = false; + _inContentBlock = wasInContentBlock; } else { expectStatementSeparator(); }