lsegal / yard

YARD is a Ruby Documentation tool. The Y stands for "Yay!"
http://yardoc.org
MIT License
1.95k stars 398 forks source link

Hilighting heredoc in Array is not rendered correctfully #1395

Open sevenc-nanashi opened 3 years ago

sevenc-nanashi commented 3 years ago

[Describe your issue here. Try to be as specific as possible so we can find the root cause more quickly!]

Steps to reproduce

  1. Set redcarpet as parser
  2. Create new file
  3. Write like:
    `` `ruby
    [
    ["Some", <<~EOS],
    some text
    EOS
    ["Some", <<~EOS]
    some text
    EOS
    ]
    `` `

    (Please delete space inside triple backquotes.)

Actual Output

image

Expected Output

image

Environment details:

I have read the Contributing Guide.

lsegal commented 3 years ago

It's possible that this was fixed by #1389, in which case this will be available in the next release. You can check by pulling that branch or testing from the main branch.