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

Heredoc & block syntax highlighting #407

Open
amerov opened this issue Dec 8, 2019 · 2 comments
Open

Heredoc & block syntax highlighting #407

amerov opened this issue Dec 8, 2019 · 2 comments

Comments

@amerov
Copy link

amerov commented Dec 8, 2019

VIM highlighting example:
vim_ruby_block
Emacs:
emacs_ruby_block

@smackesey
Copy link

smackesey commented Jun 30, 2020

Similar issue:

bad-hl

That final end should be red, the color of the rest of the case keywords. The syntax stack on the end is: ['rubyCaseExpression', 'rubyArrayLiteral']. So vim somehow thinks the Array hasn't closed.

@tpope
Copy link
Member

tpope commented Jun 12, 2021

Ruby's heredoc highlighting pushes Vim's regexp based syntax highlighting to its limits. I would say it's unlikely issues of this nature are fixable.

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

No branches or pull requests

3 participants