Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@motemen
Copy link
Contributor

@motemen motemen commented Feb 14, 2015

Color escapes in strings such as "\t" for readability.
The coloring is taken from pry (bold magenta).

2015-02-14 20 48 21

@k0kubun
Copy link
Owner

k0kubun commented Feb 14, 2015

It looks very pretty 💓
Thank you!

k0kubun added a commit that referenced this pull request Feb 14, 2015
Color escaped characters inside strings
@k0kubun k0kubun merged commit d4e57ce into k0kubun:master Feb 14, 2015
@motemen
Copy link
Contributor Author

motemen commented Feb 14, 2015

Thanks! 👍

Copy link
Owner

Choose a reason for hiding this comment

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

By the way, go compiler's scanner does not accept this type of literal whose number starts with '8' or '9' . So you don't have to care about '8' and '9' .

And current strconv.Quote()'s implementation returns not \000 but \x00 for both "\000" and "\x00" . Maybe L130-L131 are not used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

😳 You're right. Sorry!

k0kubun pushed a commit that referenced this pull request Oct 6, 2025
[Feature #19045] Add support Data#pretty_print
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