Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: detect identifiers in comments using regex, not strings.Fields #62

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

p4l1ly
Copy link

@p4l1ly p4l1ly commented Mar 11, 2020

With substitution "SomeThing=int", the comment
// foo=SomeThing,OtherThing
was being changed to
// foo=Int,OtherThing.
The capital I is a problem. This fix resolves the problem. I've used regex directly instead of go/parser because it would fail inside comments (didn't try).

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.

1 participant