Skip to content

Heredoc within array makes highlight incorrect #403

@jlebray

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions