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

retain comments within brackets #2999

Merged
merged 1 commit into from
Mar 13, 2018
Merged

Conversation

alexlamsl
Copy link
Collaborator

fixes #2998

@alexlamsl alexlamsl merged commit 188c39e into mishoo:master Mar 13, 2018
@alexlamsl alexlamsl deleted the issue-2998 branch March 13, 2018 10:44
@kzc
Copy link
Contributor

kzc commented Mar 15, 2018

Minor terminology point - { } are commonly called braces, and [ ] are brackets.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer

@alexlamsl
Copy link
Collaborator Author

@kzc good to know, thanks - was editting print_bracketed() you see...

May be we should refactor those functions?

@kzc
Copy link
Contributor

kzc commented Mar 15, 2018

Didn't realize it already was named as such. The code would be marginally more readable if that function were renamed to match common terminology. Not a big deal either way.

@alexlamsl
Copy link
Collaborator Author

Hmmm - there's -b bracketize so we are a little stuffed...

@kzc
Copy link
Contributor

kzc commented Mar 15, 2018

Yeah, had not considered it. Not sure how to handle that option. Grandfather bracketize as an alias for braces?

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.

How to keep comments in object?
2 participants