Skip to content

[BUG] tcl: incorrect syntax highlighting after regex #551

@sigmuha

Description

@sigmuha

Describe the bug
When a # is used in a regex, this is registered at a comment, ruining the rest of the documents' highlighting.

Environment (please complete the following information):

  • OS: Windows 11
  • VS Code version 1.107.1
  • Extension version 1.22.1

Steps to reproduce

  • Create a tcl file
  • Add a regex pattern with a # in.
  • Observe the rest of the document below not being formatted correctly

Expected behavior
The expected behaviour is that the syntax highlighter should ignore the # as it is inside of a regex pattern.

Actual behavior

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions