tree-sitter-scala
tree-sitter-scala copied to clipboard
Scala grammar for tree-sitter
Hello 👋 First time issue creator here, let me know if you need anything else from me! The following code produces an error node: ```scala abstract class Potato() trait Tomato...
This is sort of not conventional but is valid: ```scala val foo: Int => Int = { x => val y = 2 * x y * y } ```...
```scala trait A abstract class B(b: String) class C(c: String) extends B(c) with A ``` Output from nvim-treesitter/playground ``` trait_definition [0, 0] - [0, 7] name: identifier [0, 6] -...
Folding does not quite work on nested `def` I encountered; Forgive the code not compiling — I tried to minimize it aggressively and quickly, rather than make it compile. The...
Admittedly, this doesn't make the identifier grammar any more complete (according to EBNF), but it fixes the "infinite recursion of doom"  (To see it for yourself, open this file:...
Can you please release a new version? The latest one (v0.19.0) doesn’t work with modern nvim-treesitter. I’m maintainer of the [tree-sitter-scala](https://pkgs.alpinelinux.org/packages?name=tree-sitter-scala) package in Alpine Linux and I had to update...
At this third PR I'm starting to think I should've merged them all in one because of PR conflicts :-/ - This adds very basic support for `'{` and '${'...
Same as #44 - I'm still figuring out Tree Sitter (reading docs) so please do tell how to do this better. I think adding two conflicts severely affected the parser...
Hello! Just wondering if Scala 3 syntax support was in the works? Specifically the braceless syntax. Thank you for your work!