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

Scala 2 macros #302

Closed
susliko opened this issue Jun 10, 2023 · 1 comment · Fixed by #325
Closed

Scala 2 macros #302

susliko opened this issue Jun 10, 2023 · 1 comment · Fixed by #325
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@susliko
Copy link
Collaborator

susliko commented Jun 10, 2023

Commit of tree-sitter-scala you tested this on

3573bf7

A code sample showing the error

def a: A =
  macro B.b

Show the error node

(compilation_unit [0, 0] - [2, 0]
  (function_definition [0, 0] - [2, 0]
    name: (identifier [0, 4] - [0, 5])
    return_type: (type_identifier [0, 7] - [0, 8])
    body: (indented_block [1, 2] - [2, 0]
      (field_expression [1, 2] - [1, 11]
        value: (identifier [1, 2] - [1, 7])
        (ERROR [1, 8] - [1, 9])
        field: (identifier [1, 10] - [1, 11])))))

What do you expect the tree to look like

Some rules for Scala 2 macro should be introduced

Where are you experiencing this error?

No response

@susliko susliko added bug Something isn't working good first issue Good for newcomers labels Jun 10, 2023
@eed3si9n eed3si9n self-assigned this Jul 23, 2023
@eed3si9n
Copy link
Collaborator

here's my PR for this - #325

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants