Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Fix inline comment in method signature #63

Merged
merged 3 commits into from
Aug 23, 2016

Conversation

sadikovi
Copy link
Contributor

This PR fixes bug with displaying inline comment that is mixed with method parameters + when there is just comment without method parameters, test cases are shown below:

inline-comment-method

Change is just adding comments-inline to the list of patterns to check in methods.

Fixes #60.

@sadikovi
Copy link
Contributor Author

@50Wliu @noseglid please review.

@noseglid
Copy link
Contributor

I'd add checks for the surrounding tokens to (public, void, etc). At least on one of the tests.
Otherwise it LGTM

@sadikovi
Copy link
Contributor Author

@noseglid thanks. Will do.

@sadikovi
Copy link
Contributor Author

@noseglid addressed your comment.

@noseglid
Copy link
Contributor

👍 LGTM

@@ -884,6 +884,9 @@
'patterns': [
{
'include': '#parameters'
},
Copy link
Contributor

Choose a reason for hiding this comment

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

No trailing comma

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, will fix.

@sadikovi
Copy link
Contributor Author

@50Wliu fixed your comment, could you review again?

@winstliu winstliu merged commit de137eb into atom:master Aug 23, 2016
@winstliu
Copy link
Contributor

Thanks!

@sadikovi
Copy link
Contributor Author

@50Wliu @noseglid thank you for reviewing and merging PR!

@sadikovi sadikovi deleted the comment-inside-method-params branch August 23, 2016 02:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doesn't gray out comment blocks inside method/constructor parameter list
3 participants