Skip to content

Fix default value parsing in argument comments#46

Merged
BlakeASmith merged 1 commit intomainfrom
cursor/fix-default-value-parsing-in-argument-comments-5fe4
Sep 8, 2025
Merged

Fix default value parsing in argument comments#46
BlakeASmith merged 1 commit intomainfrom
cursor/fix-default-value-parsing-in-argument-comments-5fe4

Conversation

@BlakeASmith
Copy link
Copy Markdown
Contributor

Fix parsing of default values in Google-style argument comments to correctly detect defaults in various edge cases.

The previous regex-based parsing had issues with descriptions ending with a period when no default was present, empty default value declarations (e.g., Default:), and incorrectly matching across multiple lines, leading to truncated or contaminated default values. The new approach processes comments line-by-line with more precise regex patterns to address these issues.


Open in Cursor Open in Web

Co-authored-by: blakeinvictoria <blakeinvictoria@gmail.com>
@cursor
Copy link
Copy Markdown

cursor bot commented Sep 8, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@BlakeASmith BlakeASmith marked this pull request as ready for review September 8, 2025 05:37
@BlakeASmith BlakeASmith merged commit f50e733 into main Sep 8, 2025
5 checks passed
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.

2 participants