Skip to content

Commit bb0a855

Browse files
cirrasfourls
authored andcommitted
Fix file pointer errors around >= and <= tokens
1 parent 5afe4aa commit bb0a855

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- File pointer errors around `>=` and `<=` tokens.
13+
1014
## [1.14.0] - 2025-03-03
1115

1216
### Added

delphi-frontend/src/main/antlr3/au/com/integradev/delphi/antlr/Delphi.g

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ import org.apache.commons.lang3.StringUtils;
335335
CommonToken lastToken = (CommonToken) input.LT(-1);
336336
lastToken.setType(type);
337337
lastToken.setStartIndex(firstToken.getStartIndex());
338+
lastToken.setLine(firstToken.getLine());
339+
lastToken.setCharPositionInLine(firstToken.getCharPositionInLine());
338340
return lastToken;
339341
}
340342

0 commit comments

Comments
 (0)