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

Improve parsing around mismatched brackets

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

Description

When brackets are mismatched, it's typical for the parsing of the rest of the file to be broken.

In order to improve the experience with formatting incorrect or incomplete code, we should detect these cases and implicitly terminate the brackets.

The brackets can be implicitly terminated when a semicolon is encountered (unless in a semicolon list: constant record, generic type parameters, function parameters), or when a keyword that can only occur at the start of a line is encountered.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.