Skip to content

Fix skipping punctuation in comments - #77

Open
tmaxxdd wants to merge 1 commit into
mainfrom
fix/unwanted-punctuation-marks-multiline-comments
Open

Fix skipping punctuation in comments#77
tmaxxdd wants to merge 1 commit into
mainfrom
fix/unwanted-punctuation-marks-multiline-comments

Conversation

@tmaxxdd

@tmaxxdd tmaxxdd commented Aug 10, 2026

Copy link
Copy Markdown
Member

No description provided.

@tmaxxdd
tmaxxdd requested a review from xJac0b August 10, 2026 18:44
@tmaxxdd tmaxxdd linked an issue Aug 10, 2026 that may be closed by this pull request
Comment thread .DS_Store

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we can remove this file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks like PunctuationLocator doesn't distinguish between comments, multiline comments, or strings - it just accepts ignored ranges.

Maybe the tests here could be more generic and just cover cases such as:

  • ignores punctuation inside an ignored range
  • returns punctuation outside an ignored range
  • handles multiple ignored ranges
  • handles range boundaries correctly

The comment/string-specific cases could live in CodeAnalyzerTest, where those ranges are actually created and combined.

Let me know what you think.

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.

Unwanted tokens are highlighted in multiline comments

2 participants