tree-sitter / tree-sitter-scala

Scala grammar for tree-sitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scala 2 macros

susliko opened this issue · comments

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

here's my PR for this - #325