Skip to content

Conversation

kitbellew
Copy link
Collaborator

The current issue is that the span is computed using leftLineId of the token just before and the token at the end. However, leftLineId refers to the beginning of the token, thus multiline comments are incorrectly accounted.

Instead, use the token at the beginning of the span and increase by 1. Fixes #3731.

The current issue is that the span is computed using `leftLineId` of the
token just before and the token at the end. However, `leftLineId` refers
to the beginning of the token, thus multiline comments are incorrectly
accounted.

Instead, use the token at the beginning of the span and increase by 1.
@kitbellew kitbellew requested a review from tgodzik December 24, 2023 00:26
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kitbellew
Copy link
Collaborator Author

@tgodzik thank you, happy holidays!

@kitbellew kitbellew merged commit 4ed3b0f into scalameta:master Dec 27, 2023
@kitbellew kitbellew deleted the 3731 branch December 27, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Config insertEndMarkerMinLines adds end marker for method counting scaladoc
2 participants