Skip to content

Double quote characters within a regex #226

@duff

Description

@duff

When the " character appears in a Regex, the highlighting is attempting to treat it as a binary rather than just another character in the Regex. So, for example, if I have a Regex such as:

    regex = ~r/<a href="([^"]*)"/
    # Some comment
    i = index

the highlighting looks like this:

line_ex

So it looks like it's thinking that part of the Regex is a string. And then, since there are an odd number of " characters in the Regex, the remainder of the file's highlighting is off since it's waiting to have the " closed.

I haven't yet been able to determine how to actually fix it. :) I see there are a number of lines handling sigils and a number of lines handling regexes. I thought I'd report things here in case anyone might have ideas as I research more.

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