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.

Handle string quotes in JSX #174

Description

@edemaine

Prerequisites

Description

String quotes should not be processed when inside JSX (HTML) blocks.

Steps to Reproduce

  1. Create a file test.coffee

  2. Type the following file content:

    <code>
      Hello world's
      this is some {'text'}
    </code>

Expected behavior:

This is the highlighting I expect, which is what I get when using JavaScript highlighting (.jsx extension):

image

Actual behavior:

This is the highlighting I get:

image

Reproduces how often:

100%

Versions

1.54.0 x64 on Windows 10

I originally observed this issue in vscode (see microsoft/vscode#117143).

Additional Information

I'm new to these JSON syntax files, but given that it works in JavaScript, I imagine it is possible (and hopefully easy?) to fix.

Related issue: #135. But I think that should be closed, because #172 merged.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions