Skip to content

JavaScript highlighting not working in *.hbs files #8

Description

@SathiyaramanM

I am using Handlebars for HTML templating. My hbs files also use some script sections which are currently not being highlighted. In some of my files with large script sections, the highlighting continues to break rest of the files.

The highlighting works just fine in VSCode though.

Steps to Reproduce

  1. Create a *.hbs file.
  2. Fill some pure HTML markup content. Highlighting should still work here.
  3. Add a <script> section somewhere in the hbs file and add some valid JavaScript code inside. Highlighting won't work for this script section at least.

Opening the same file in VSCode shows proper highlighting. Or alternatively, creating a duplicate file with .html extension should restore the highlighting in Zed itself.

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