Skip to content

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

Open
p4l1ly wants to merge 2 commits into
cheekybits:masterfrom
p4l1ly:comment_lits
Open

fix: detect identifiers in comments using regex, not strings.Fields#62
p4l1ly wants to merge 2 commits into
cheekybits:masterfrom
p4l1ly:comment_lits

Conversation

@p4l1ly

@p4l1ly p4l1ly commented Mar 11, 2020

Copy link
Copy Markdown

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