tree-sitter / tree-sitter-scala

Scala grammar for tree-sitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Braceless `match` with cases of same indentation

susliko opened this issue · comments

Commit of tree-sitter-scala you tested this on

374709c

A code sample showing the error

object A:
  a match
  case b =>
  case c =>

Show the error node

(compilation_unit [0, 0] - [4, 0]
  (object_definition [0, 0] - [4, 0]
    name: (identifier [0, 7] - [0, 8])
    body: (template_body [0, 8] - [4, 0]
      (ERROR [1, 2] - [2, 6]
        (identifier [1, 2] - [1, 3]))
      (identifier [2, 7] - [2, 8])
      (ERROR [2, 9] - [3, 11]))))

What do you expect the tree to look like

No response

Where are you experiencing this error?

Applications.scala, PatternMatcher.scala