Skip to content

Heredoc within array makes highlight incorrect #403

Description

@jlebray

The issue

Having an Heredoc within an array makes some part of the document unhighlighted, such as the 3 end in the following example
image

How to reproduce

module Test
  class Test
    def test
      [<<~SQL]
        TEST
      SQL
    end

    def other_method
    end
  end
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions