Fix a parsing bug involving nested content blocks (#483)

Closes #482
This commit is contained in:
Natalie Weizenbaum 2018-09-26 14:32:55 -04:00 committed by GitHub
parent a6164217df
commit b3c9e7b00f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -896,9 +896,10 @@ abstract class StylesheetParser extends Parser {
List<Statement> children;
if (lookingAtChildren()) {
var wasInContentBlock = _inContentBlock;
_inContentBlock = true;
children = this.children(_statement);
_inContentBlock = false;
_inContentBlock = wasInContentBlock;
} else {
expectStatementSeparator();
}