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

When heredoc content is between symbol begin colon and symbol content, colorizing is wrong #740

Open
tompng opened this issue Oct 26, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@tompng
Copy link
Member

tompng commented Oct 26, 2023

Description

Combination with heredoc and \, heredoc content can be placed between symbol beginning : and symbol content.

<<HEREDOC; :\
heredoc
HEREDOC
symbol

Colorizing such code is wrong.

puts IRB::Color.colorize_code "<<A;:\\\na\nA\nsymbol"

heredo_symbol

Result of irb_info

Ruby version: 3.2.2
IRB version: irb 1.8.3 (2023-10-14)
InputMethod: RelineInputMethod with Reline 0.3.9 and /Users/tomoya.ishida/.inputrc
.irbrc path: /Users/tomoya.ishida/.irbrc
RUBY_PLATFORM: arm64-darwin22
LANG env: ja_JP.UTF-8
East Asian Ambiguous Width: 1

Terminal Emulator

any

Setting Files

no

@ima1zumi ima1zumi added the bug Something isn't working label Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants