Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Braceless match with cases of same indentation #264

Open
susliko opened this issue May 28, 2023 · 0 comments
Open

Braceless match with cases of same indentation #264

susliko opened this issue May 28, 2023 · 0 comments
Labels
area/scala3 Scala 3 syntax bug Something isn't working

Comments

@susliko
Copy link
Collaborator

susliko commented May 28, 2023

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

@susliko susliko added bug Something isn't working area/scala3 Scala 3 syntax labels Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/scala3 Scala 3 syntax bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant