Skip to content

Parser mishandles quote(s) inside a tag in JSX #154

@qyurila

Description

@qyurila
// foo.jsx

const Test = () => (
	<div
		// It's a test
		id="test"
	/>
);

Blockman shows the following error when it tries to parse the above code:

Error: invalid syntax at line 3 col 9: // It's a test ^

Replacing the line with // '' and // "" stops the error, whereas // ' and // """ doesn't.

Related: #127

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