Skip to content

Commit

Permalink
Allow a trailing comma after rest parameters and arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Dec 12, 2024
1 parent 219fe67 commit c45bc70
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 1.82.1-dev
## 1.83.0

* No user-visible changes.
* Allow trailing commas in *all* argument and parameter lists.

## 1.82.0

Expand Down
2 changes: 2 additions & 0 deletions lib/src/parse/stylesheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1632,6 +1632,7 @@ abstract class StylesheetParser extends Parser {
scanner.expectChar($dot);
scanner.expectChar($dot);
whitespace();
if (scanner.scanChar($comma)) whitespace();
restArgument = name;
break;
}
Expand Down Expand Up @@ -1689,6 +1690,7 @@ abstract class StylesheetParser extends Parser {
} else {
keywordRest = expression;
whitespace();
if (scanner.scanChar($comma)) whitespace();
break;
}
} else if (named.isNotEmpty) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/sass-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 0.4.8-dev
## 0.4.8

Add support for parsing the `@mixin` rule.

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.8-dev",
"version": "0.4.8",
"description": "A PostCSS-compatible wrapper of the official Sass parser",
"repository": "sass/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 @@
## 14.5.0

* No user-visible changes.

## 14.4.1-dev

* 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: 14.4.1-dev
version: 14.5.0
description: Additional APIs for Dart Sass.
homepage: https://github.com/sass/dart-sass

environment:
sdk: ">=3.3.0 <4.0.0"

dependencies:
sass: 1.82.1
sass: 1.83.0

dev_dependencies:
dartdoc: ^8.0.14
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sass
version: 1.82.1-dev
version: 1.83.0
description: A Sass implementation in Dart.
homepage: https://github.com/sass/dart-sass

Expand Down

0 comments on commit c45bc70

Please sign in to comment.