tree-sitter-scala icon indicating copy to clipboard operation
tree-sitter-scala copied to clipboard

Not recognizing the @Inject syntax

Open phumke opened this issue 4 years ago • 0 comments

Hi Tree-Sitter-Scala,

When parsing the following class the private val lines are not showing up in the tree:

class MyClass @Inject()(injectedVar1: Type1, injectedVar2: Type2) {
  private val VARIABLE = "blah"
  private val VARIABLE2 = "blah2"
}

However removing the @Inject parses without an issue:

class MyClass {
  private val VARIABLE = "blah"
  private val VARIABLE2 = "blah2"
}

phumke avatar Oct 15 '21 19:10 phumke