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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

### Fixed

- Fixed parsing of logical lines with sequential `<` and `>` comparisons.

### Added

- Added support for Delphi 13 `noreturn` directive.
Expand Down
4 changes: 4 additions & 0 deletions core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Fixed

- Fixed parsing of logical lines with sequential `<` and `>` comparisons.

### Added

- Added support for Delphi 13 `noreturn` directive.
Expand Down
7 changes: 6 additions & 1 deletion core/datatests/generators/logical_line_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3447,7 +3447,12 @@ mod regression {
_| Protected = 0;
_| Public = 0;
_| Published = 0;
"
",
non_generic_statements = "
_|A := B < C;
_|raise D(E > F);
_|X := Y;
",
);
}
}
4 changes: 4 additions & 0 deletions core/src/defaults/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1795,6 +1795,10 @@ impl<'a, 'b> InternalDelphiLogicalLineParser<'a, 'b> {
}

fn finish_logical_line(&mut self) {
self.generic_level = 0;
self.brack_level = 0;
self.paren_level = 0;

if self.is_at_start_of_line() {
self.get_current_logical_line_mut().line_type = LLT::Unknown;
return;
Expand Down
Loading