File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
delphi-frontend/src/main/java/au/com/integradev/delphi/antlr/ast/token Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
1212- Improve support for evaluating name references in compiler directive expressions.
1313
14+ ### Fixed
15+
16+ - Incorrect file position calculation for multiline string tokens.
17+
1418## [ 1.15.0] - 2025-04-03
1519
1620### Added
Original file line number Diff line number Diff line change @@ -89,7 +89,9 @@ private void calculatePosition() {
8989 beginColumn = insertionToken .getBeginColumn ();
9090 endLine = insertionToken .getEndLine ();
9191 endColumn = insertionToken .getEndColumn ();
92- } else if (isComment () || isCompilerDirective ()) {
92+ } else if (isComment ()
93+ || isCompilerDirective ()
94+ || tokenType == DelphiTokenType .MULTILINE_STRING ) {
9395 TokenLocation location =
9496 new TokenLocation (token .getLine (), token .getCharPositionInLine (), token .getText ());
9597 beginLine = location .startLine ();
You can’t perform that action at this time.
0 commit comments