Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Adding a script tag kills syntax highlighting #242

@calebmeyer

Description

@calebmeyer

Prerequisites

Description

When you add a script tag (with type, source, or no attributes at all), all syntax highlighting turns off for the current file. Removing the script tag adds it back in.

Steps to Reproduce

  1. Open a new file
  2. Set the syntax as HTML, either by saving the file as HTML or using the syntax selector
  3. Expand the html snippet (this step may be optional, but it's an easy way to see the lack of highlighting)
  4. Type <script></scrip
  5. Type t

test

Expected behavior:

All syntax is highlighted

Actual behavior:

No syntax is highlighted (all becomes gray, syntax classes disappear from the spans)

Reproduces how often:

100% of the time

Versions

image

image

Additional Information

No errors in the console
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions