Skip to content

Syntax highlighting breaks after HTML <script> tag #71

@loqusion

Description

@loqusion

Describe the issue
If a line of JavaScript within a script tag in HTML doesn't end in a semicolon, it sometimes breaks the syntax highlighting for the rest of the file.

Screenshot of Current Behavior
image
image
image

Sample Code to Reproduce

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
  <script>
    require("source-map-support/source-map-support.js").install()
  </script></head>
  <body>
    <div id="app"></div>
  </body>
</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions