mirror of https://github.com/Wilfred/difftastic/
Problem ------- Definitions like the following are not supported: ```scala val a,b,c: Int = 1 var d,e = "" ``` Solution ------- Add `$.identifiers` as a choice option along with `$._pattern` to `$.var_definition`. Remove `prec(-1)` in `$.identifiers` definitions so that parser wouldn't on declarations with more than two identifiers. Resolve a conflict between `$.identifiers` and `$.val_declaration` |
||
|---|---|---|
| .github | ||
| bindings | ||
| corpus | ||
| examples | ||
| queries/scala | ||
| script | ||
| src | ||
| test | ||
| .envrc | ||
| .git-blame-ignore-revs | ||
| .gitattributes | ||
| .gitignore | ||
| .npmignore | ||
| .prettierrc.json | ||
| CONTRIBUTING.md | ||
| Cargo.toml | ||
| LICENSE | ||
| Package.swift | ||
| README.md | ||
| binding.gyp | ||
| default.nix | ||
| grammar.js | ||
| package.json | ||
README.md
tree-sitter-scala
Scala grammar for tree-sitter covering both Scala 2 and 3.
References
Scala 2
Scala 3
Development and Contributing
Please refer to the CONTRIBUTING.md for instructions on getting set up.