Skip to content

Conversation

@Zerxoi
Copy link

@Zerxoi Zerxoi commented May 30, 2025

Add tsx support
#77

Copy link
Author

@Zerxoi Zerxoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unit test pass

@bonede
Copy link
Owner

bonede commented Jun 7, 2025

Hi,

The build scripts assumes parser C files located in /src, but typescript repository's C files are located in /tsx and /typescript.

I have to tweak the build scripts before this build can pass.

@Zerxoi
Copy link
Author

Zerxoi commented Jun 9, 2025

Exactly. The tree-sitter-typescript repository has the C files for typescript and tsx parsers in separate subdirectories under /src. Since I didn't run regression tests for other languages, I temporarily modified the tsx build scripts to build the dynamic library, then reverted those changes to the build scripts.

@Li17860397285
Copy link

How can I support parsing tsx files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants