tree-sitter / tree-sitter-typescript

TypeScript grammar for tree-sitter
MIT License
360 stars 109 forks source link

highlight mess #237

Closed beautiful-boyyy closed 8 months ago

beautiful-boyyy commented 1 year ago

The following piece of code is valid but it is parsed incorrectly:

import React from "react"

const DependencePage = () => {
  return (
    <>
      <div>nifs</div>
    </>
  )
}

export default DependencePage

The output of tree-sitter parse is the following:

Warning: You have not configured any parser directories!
Please run `tree-sitter init-config` and edit the resulting
configuration file to indicate where we should look for
language grammars.

No language found

Screenshot 2023-02-17 at 15 43 38

amaanq commented 8 months ago

seems ok on master, let me know if not.