From 7878218b3bdda5be9c87e5129e1d3df036c440b9 Mon Sep 17 00:00:00 2001 From: Joshua Gardner Date: Tue, 11 Nov 2025 12:04:52 +1100 Subject: [PATCH 1/3] Fix CHANGELOG formatting --- CHANGELOG.md | 4 ++-- core/CHANGELOG.md | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a587c0f5..09fa8f48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Added formatting for multiline string interior whitespace. Enabled by default with new setting `format_multiline_strings`. 1. Indentation is normalised to align the trailing quote with the leading quote. Lines in the - middle are adjusted to retain their original significant leading whitespace. + middle are adjusted to retain their original significant leading whitespace. 2. Internal line endings are normalised to match the configured line ending. 3. Invalid multiline strings are left untouched. - All keywords are now set to lowercase. This includes reserved words (like `begin` and `const`) but also includes @@ -213,7 +213,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Format spaces between all tokens (on separate lines) [Unreleased]: https://github.com/integrated-application-development/pasfmt/compare/v0.6.0...HEAD -[0.5.1]: https://github.com/integrated-application-development/pasfmt/compare/v0.5.1...v0.6.0 +[0.6.0]: https://github.com/integrated-application-development/pasfmt/compare/v0.5.1...v0.6.0 [0.5.1]: https://github.com/integrated-application-development/pasfmt/compare/v0.5.0...v0.5.1 [0.5.0]: https://github.com/integrated-application-development/pasfmt/compare/v0.4.0...v0.5.0 [0.4.0]: https://github.com/integrated-application-development/pasfmt/compare/v0.4.0-rc2...v0.4.0 diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index a1176d6f..26ce69e1 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -18,15 +18,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - In order to support mutation of token contents, a few APIs have been adjusted. 1. `Token::set_content` was added. 2. `FormattedTokens` - * Methods `new_from_tokens`, `new`, and `get_token` were adjusted to either expect exclusive - references to tokens as arguments, or return exclusive references to tokens as part of the - result. - * Method `get_tokens` was deleted and replaced by `tokens`, which returns an iterator instead - of a reference to a vector. - * Method `get_token_mut` was added to provide a way to safely retrieve mutatable references to - tokens (alongside the mutable formatting data), protecting against mutating ignored tokens. - * Method `tokens_mut` was added to provide an iterable equivalent to `get_token_mut`, - mirroring the relationship between `get_token` and `tokens`. + - Methods `new_from_tokens`, `new`, and `get_token` were adjusted to either expect exclusive + references to tokens as arguments, or return exclusive references to tokens as part of the + result. + - Method `get_tokens` was deleted and replaced by `tokens`, which returns an iterator instead + of a reference to a vector. + - Method `get_token_mut` was added to provide a way to safely retrieve mutatable references to + tokens (alongside the mutable formatting data), protecting against mutating ignored tokens. + - Method `tokens_mut` was added to provide an iterable equivalent to `get_token_mut`, + mirroring the relationship between `get_token` and `tokens`. ### Removed From 94fadc4cbbc5439d81f0908f9770d9cc0774e6f0 Mon Sep 17 00:00:00 2001 From: Joshua Gardner Date: Tue, 11 Nov 2025 12:07:33 +1100 Subject: [PATCH 2/3] Release 0.7.0 --- CHANGELOG.md | 5 ++++- Cargo.lock | 4 ++-- core/CHANGELOG.md | 2 ++ core/Cargo.toml | 2 +- front-end/Cargo.toml | 2 +- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09fa8f48..0b9b2f00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +## [0.7.0] - 2025-11-11 + ### Added - Added formatting for multiline string interior whitespace. Enabled by default with new setting `format_multiline_strings`. @@ -212,7 +214,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ``` - Format spaces between all tokens (on separate lines) -[Unreleased]: https://github.com/integrated-application-development/pasfmt/compare/v0.6.0...HEAD +[Unreleased]: https://github.com/integrated-application-development/pasfmt/compare/v0.7.0...HEAD +[0.7.0]: https://github.com/integrated-application-development/pasfmt/compare/v0.6.0...v0.7.0 [0.6.0]: https://github.com/integrated-application-development/pasfmt/compare/v0.5.1...v0.6.0 [0.5.1]: https://github.com/integrated-application-development/pasfmt/compare/v0.5.0...v0.5.1 [0.5.0]: https://github.com/integrated-application-development/pasfmt/compare/v0.4.0...v0.5.0 diff --git a/Cargo.lock b/Cargo.lock index 23257676..17117b2e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -749,7 +749,7 @@ checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575" [[package]] name = "pasfmt" -version = "0.6.0+dev" +version = "0.7.0" dependencies = [ "anyhow", "assert_cmd", @@ -771,7 +771,7 @@ dependencies = [ [[package]] name = "pasfmt-core" -version = "0.6.0+dev" +version = "0.7.0" dependencies = [ "criterion", "fxhash", diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index 26ce69e1..417eabaa 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## 0.7.0 - 2025-11-11 + ### Added - Added setting to enable internal formatting of multiline strings: `OptimisingLineFormatterSettings.format_multiline_strings`. diff --git a/core/Cargo.toml b/core/Cargo.toml index 8afb1958..5866b724 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pasfmt-core" -version = "0.6.0+dev" +version = "0.7.0" edition = "2021" [features] diff --git a/front-end/Cargo.toml b/front-end/Cargo.toml index ec3a0565..b01cdc37 100644 --- a/front-end/Cargo.toml +++ b/front-end/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pasfmt" -version = "0.6.0+dev" +version = "0.7.0" edition = "2021" # To allow splitting integration tests into separate files without creating multiple test binaries From a1ce28e7b5736e78e1740f96e7d99557e958798f Mon Sep 17 00:00:00 2001 From: Joshua Gardner Date: Tue, 11 Nov 2025 12:08:17 +1100 Subject: [PATCH 3/3] Post-release for 0.7.0 --- Cargo.lock | 4 ++-- core/Cargo.toml | 2 +- front-end/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 17117b2e..00008741 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -749,7 +749,7 @@ checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575" [[package]] name = "pasfmt" -version = "0.7.0" +version = "0.7.0+dev" dependencies = [ "anyhow", "assert_cmd", @@ -771,7 +771,7 @@ dependencies = [ [[package]] name = "pasfmt-core" -version = "0.7.0" +version = "0.7.0+dev" dependencies = [ "criterion", "fxhash", diff --git a/core/Cargo.toml b/core/Cargo.toml index 5866b724..b0cb7138 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pasfmt-core" -version = "0.7.0" +version = "0.7.0+dev" edition = "2021" [features] diff --git a/front-end/Cargo.toml b/front-end/Cargo.toml index b01cdc37..e4870ba9 100644 --- a/front-end/Cargo.toml +++ b/front-end/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pasfmt" -version = "0.7.0" +version = "0.7.0+dev" edition = "2021" # To allow splitting integration tests into separate files without creating multiple test binaries