Skip to content
Merged
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
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ 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`.
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
Expand Down Expand Up @@ -212,8 +214,9 @@ 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
[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
[0.4.0]: https://github.com/integrated-application-development/pasfmt/compare/v0.4.0-rc2...v0.4.0
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 11 additions & 9 deletions core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -18,15 +20,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

Expand Down
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pasfmt-core"
version = "0.6.0+dev"
version = "0.7.0+dev"
edition = "2021"

[features]
Expand Down
2 changes: 1 addition & 1 deletion front-end/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pasfmt"
version = "0.6.0+dev"
version = "0.7.0+dev"
edition = "2021"

# To allow splitting integration tests into separate files without creating multiple test binaries
Expand Down