Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Conversation

maxbrunsfeld
Copy link
Contributor

@maxbrunsfeld maxbrunsfeld commented Dec 5, 2017

This adds an alternative TypeScript grammar that uses tree-sitter-typescript for parsing instead of first-mate.

It also adds a Flow grammar that is identical to the typescript one except that it matches .js files that contain @flow near the beginning.

type: 'tree-sitter'
parser: 'tree-sitter-typescript'

fileTypes: ["ts", "tsx", "js.flow"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Confused as to why js.flow is in the typescript grammar.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, thanks for catching that. Originally, I was going to just have one grammar for both.

@maxbrunsfeld maxbrunsfeld merged commit 180e458 into master Jan 8, 2018
@maxbrunsfeld maxbrunsfeld deleted the mb-tree-sitter-parser branch January 8, 2018 17:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants