tree-sitter / tree-sitter-typescript

TypeScript grammar for tree-sitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: `spell` not working within TSX/JSX

Hacksore opened this issue · comments

Did you check existing issues?

  • I have read all the tree-sitter docs if it relates to using the parser
  • I have searched the existing issues of tree-sitter-typescript

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>
);

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