mirror of https://github.com/Wilfred/difftastic/
Problem ------- 1. In Scala 3, extends clause can be comma separated. 2. In Scala 2 or 3 extends clause can ctor with parameters: `class D with E(x) with F(y)`. Solution -------- `extends` is now followed by *constructor applications* separated by either `with` or `,` as opposed to treating them as a compound type. |
||
|---|---|---|
| .github/workflows | ||
| bindings | ||
| corpus | ||
| examples | ||
| queries | ||
| script | ||
| src | ||
| test | ||
| .envrc | ||
| .gitattributes | ||
| .gitignore | ||
| .npmignore | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
| binding.gyp | ||
| default.nix | ||
| grammar.js | ||
| package.json | ||
README.md
tree-sitter-scala
Scala grammar for tree-sitter.
References
Development
Requirements:
- Node.js version 6.0 or greater
- C Compiler
Refer to the tree-sitter documentation for more details. If you use nix you can enter a nix-shell (nix-shell .) which will install them for you.
Then, install the project's dependencies:
npm install
Add a test case to ./corpus, make the required changes to grammar.js,
regenerate and recompile the parser, and run the tests:
npm run build
npm test