tree-sitter / tree-sitter-scala

Scala grammar for tree-sitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support `derives` clause with traits

ghostbuster91 opened this issue · comments

Commit of tree-sitter-scala you tested this on

70afdd5

A code sample showing the error

trait MyTrait derives A {
}

Show the error node

trait_definition [128, 0] - [129, 1]
  name: identifier [128, 6] - [128, 16]
  ERROR [128, 17] - [128, 29]
  body: template_body [128, 30] - [129, 1]

What do you expect the tree to look like

(trait_definition
  (identifier)
  (derives_clause
      (type_identifier))
  (template_body)
)

Where are you experiencing this error?

nvim-treesitter

@ghostbuster91 Thanks for the report!