Match cases with semicolon only
susliko opened this issue · comments
Commit of tree-sitter-scala you tested this on
A code sample showing the error
x match {
case y =>
;
}
Show the error node
(compilation_unit [0, 0] - [6, 0]
(identifier [0, 0] - [0, 1])
(ERROR [0, 2] - [6, 0]
(ERROR [0, 8] - [1, 11]
(case_clause [1, 2] - [1, 11]
pattern: (identifier [1, 7] - [1, 8])))))
What do you expect the tree to look like
(compilation_unit [0, 0] - [6, 0]
(match_expression [0, 0] - [3, 1]
value: (identifier [0, 0] - [0, 1])
body: (case_block [0, 8] - [3, 1]
(case_clause [1, 2] - [1, 11]
pattern: (identifier [1, 7] - [1, 8])))))