mirror of https://github.com/Wilfred/difftastic/
git-subtree-dir: vendor/tree-sitter-typescript git-subtree-mainline: |
||
|---|---|---|
| .. | ||
| .github | ||
| bindings | ||
| common | ||
| examples | ||
| queries | ||
| script | ||
| tsx | ||
| typescript | ||
| .gitattributes | ||
| .gitignore | ||
| .npmignore | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
| appveyor.yml | ||
| binding.gyp | ||
| package.json | ||
README.md
tree-sitter-typescript
TypeScript and TSX grammars for tree-sitter.
Because TSX and TypeScript are actually two different dialects, this module defines two grammars. Require them as follows:
require('tree-sitter-typescript').typescript; // TypeScript grammar
require('tree-sitter-typescript').tsx; // TSX grammar
References