Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.94.3-dev

* Fix the span reported for standalone `%` expressions followed by whitespace.

## 1.94.2

### Command-Line Interface
Expand Down
3 changes: 2 additions & 1 deletion lib/src/parse/stylesheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2154,11 +2154,12 @@ abstract class StylesheetParser extends Parser {
length: operator.operator.length,
);
}
var operatorEnd = scanner.position;
whitespace(consumeNewlines: true);

if (operator == BinaryOperator.modulo && !_lookingAtExpression()) {
addSingleExpression(StringExpression.plain(
'%', spanFromPosition(scanner.position - 1)));
'%', spanFromPosition(operatorEnd - 1, operatorEnd)));
} else {
operators.add(operator);
operands.add(singleExpression);
Expand Down
4 changes: 4 additions & 0 deletions pkg/sass-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.4.36-dev

* No user-visible changes.

## 0.4.35

* No user-visible changes.
Expand Down
2 changes: 1 addition & 1 deletion pkg/sass-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sass-parser",
"version": "0.4.35",
"version": "0.4.36-dev",
"description": "A PostCSS-compatible wrapper of the official Sass parser",
"repository": "sass/dart-sass",
"author": "Google Inc.",
Expand Down
4 changes: 4 additions & 0 deletions pkg/sass_api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 16.0.3-dev

* No user-visible changes.

## 16.0.2

* No user-visible changes.
Expand Down
4 changes: 2 additions & 2 deletions pkg/sass_api/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: sass_api
# Note: Every time we add a new Sass AST node, we need to bump the *major*
# version because it's a breaking change for anyone who's implementing the
# visitor interface(s).
version: 16.0.2
version: 16.0.3-dev
description: Additional APIs for Dart Sass.
homepage: https://github.com/sass/dart-sass

environment:
sdk: ">=3.6.0 <4.0.0"

dependencies:
sass: 1.94.2
sass: 1.94.3

dev_dependencies:
dartdoc: ">=8.0.14 <10.0.0"
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sass
version: 1.94.2
version: 1.94.3-dev
description: A Sass implementation in Dart.
homepage: https://github.com/sass/dart-sass

Expand Down Expand Up @@ -45,7 +45,7 @@ dev_dependencies:
grinder: ^0.9.0
node_preamble: ^2.0.2
lints: ">=4.0.0 <7.0.0"
protoc_plugin: ">=22.0.1 <25.0.0"
protoc_plugin: ">=22.0.1 <24.0.0"
pub_api_client: ">=2.1.1 <4.0.0"
pubspec_parse: ^1.3.0
test: ^1.16.7
Expand Down
Loading