Skip to content

Incorrect syntax highlight for heredoc + named tuple on the same line #8

@BigBoyBarney

Description

@BigBoyBarney

Hi!

The following example is highlighted incorrectly.

DATABASE.query_all(<<-SQL, as: {id: Int64, image: String?})
  sql query here
  SQL

The interesting thing is that the error varies from theme to theme.
OneDark Pro
Image

Tokyo Night Storm
Image


Adding a whitespace between the curly braces and the code solves it in the OneDark Pro case, but not Tokyo Night Storm:

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions