Skip to content

regexp/regsub with quotes after expression breaks syntax highlighting #2

@shages

Description

@shages

This is basically the same issue @cPsYcRoW filed for the zpconn/language-tcl package here:
zpconn/language-tcl#5

When regexp or regsub contain quotes after the expression, the rest of the document is highlighted as a double quoted string, starting from the first quote. Quotes in the expression aren't an issue.

Examples, which when pasted in existing code will exhibit the issue:
regexp {exp} "string" matchVar
regsub {exp} "string" subSpec varName
regsub {exp} $string "subSpec" varName

I haven't yet checked if cPsYcRoW's solution given for the zpconn package would work here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions