Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird error in JSX when using a comma after a tag #1299

Closed
jcubic opened this issue Feb 26, 2024 · 2 comments
Closed

Weird error in JSX when using a comma after a tag #1299

jcubic opened this issue Feb 26, 2024 · 2 comments

Comments

@jcubic
Copy link

jcubic commented Feb 26, 2024

Got this code:

export function Component(): JSX.Element {
  return (
    <p>
      You can disable this mechanism with
      <a href="http://tinyurl.com/CSP-disable">Chrome Extension</a>,
    but you do this on your own risk.
    </p>
  );
}

The comma after <a> tag makes the rest of the text like JavaScript code. Because do and this are highlighted as keywords. But the real issue is the indentation.

Przechwycenie obrazu ekranu_2024-02-26_19-47-22

@fxbois
Copy link
Owner

fxbois commented Mar 15, 2024

should be fixed with last commit

@jcubic
Copy link
Author

jcubic commented Mar 15, 2024

Can confirm it works.

@fxbois fxbois closed this as completed Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants