Skip to content

Syntax highlighting doesn't fully handle slashy strings / dollar slashy strings #15

Description

@mparry

There are a couple of problems with syntax highlighting for strings:

  • It doesn't handle interpolations in slashy strings.
  • It doesn't handle dollar slashy strings at all.

So, for example, neither of the following strings will currently highlight properly.

/foo $bar ${baz} boz/
$/foo $bar ${baz} b\o\z/$

And in fact, that Markdown render above has the same issues. As far as I can tell, GH's renderer is also using this TM bundle, via https://github.com/github/linguist/tree/master/vendor/grammars!

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