tree-sitter-julia icon indicating copy to clipboard operation
tree-sitter-julia copied to clipboard

`|>` (pipe operator)

Open FelipeLema opened this issue 4 years ago • 2 comments

The following code is not correctly parsed when I use emacs-tree-sitter on it

foo() |>
    bar |>
    baz
qux

It prints the following:

(source_file (ERROR (call_expression (identifier) (argument_list)) (UNEXPECTED '\n') (identifier) (UNEXPECTED '\n')) (identifier) (identifier))

FelipeLema avatar Aug 27 '20 00:08 FelipeLema

This seems to be fixed.

source_file [0, 0] - [4, 0]
  binary_expression [0, 0] - [2, 7]
    binary_expression [0, 0] - [1, 7]
      call_expression [0, 0] - [0, 5]
        identifier [0, 0] - [0, 3]
        argument_list [0, 3] - [0, 5]
      operator [0, 6] - [0, 8]
      identifier [1, 4] - [1, 7]
    operator [1, 8] - [1, 10]
    identifier [2, 4] - [2, 7]
  identifier [3, 0] - [3, 3]

ChrHorn avatar Jun 08 '22 09:06 ChrHorn

oh, goodie... can we add this expression as a test?

FelipeLema avatar Jun 08 '22 16:06 FelipeLema

thank you!

FelipeLema avatar Nov 04 '22 22:11 FelipeLema