Skip to content

Syntax highlighting can be brittle #338

Open
@patrickhulce

Description

@patrickhulce

Steps to Reproduce

  1. Create a snapshot file with the following content
exports[`file should handle HTML-like stuff 1`] = `"<input id=\\"label-text-input\\" type=\\"text\\">"`;

exports[`file should handle HTML-like stuff 2`] = `now everything is ugly for the rest of the file :(`;

Expected Behavior

Syntax highlighting is broken/off within the string, but not outside it

Actual Behavior

Syntax highlighting is broken for the entire file

image


It looks like the snapshot grammar is a fork of the TypeScript grammar, but the commit (e5d1aa0) doesn't seem to show what was changed. Perhaps just rolling to the latest TypeScript one might help?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions