mirror of https://github.com/Wilfred/difftastic/
Problem ------- The following comment combinations are not parsed: 1. ``` // /* // * // */ ``` 2. ``` /* // */ ``` Solution ------- - set higher lexing priority for `$._comment_text` token - include "//" as an alternative to the contents of `$.block_comment` |
||
|---|---|---|
| .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.