integrated-application-development / integrated-application-development/pasfmt

Improve support for anonymous records

Open
#167 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
105
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Anonymous records are not currently well-supported.

```delphi
const
A: record
B: Boolean;
C: Boolean;
end = (B: True; C: False);
```
This example is formatted correctly. Additionally, each physical line corresponds to a `LogicalLine` produced by the parser.

In almost every case, the formatting produced with an anonymous record is undesirable and inconsistent with the established style.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the anonymous-record example with pasfmt and inspect how the parser produces LogicalLine entries for each physical line. Compare the resulting formatting with the established style; done means anonymous records are formatted consistently without regressing the correctly formatted example.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.