tree-sitter / tree-sitter-typescript

TypeScript grammar for tree-sitter
MIT License
332 stars 103 forks source link

bug: `spell` not working within TSX/JSX #275

Closed Hacksore closed 4 months ago

Hacksore commented 4 months ago

Did you check existing issues?

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

tree-sitter 0.20.9

Describe the bug

Spell check does not seem to work inside of TSX/JSX but it will work fine in HTML so is this a bug?

Not working in JSX/TSX

image

Works in HTML

image

Steps To Reproduce/Bad Parse Tree

  1. load up the MVP code
  2. use set spell

Expected Behavior/Parse Tree

The typos in the JSX/TSX should be showing underlines.

Repro

import React from "react";
import ReactDOM from "react-dom/client";
// thse is tpoes
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
  <React.StrictMode>thse is tpoes</React.StrictMode>
);
amaanq commented 4 months ago

not the repo for this, this is a nvim-treesitter problem.