Skip to content

Error: rhs of pipe_expression #182

@aspeddro

Description

@aspeddro

As noted in #181

Example:

1 -> #A("foo")

Is parsed as:

yarn run v1.22.19
$ /home/pedro/Desktop/projects/tree-sitter-rescript/node_modules/.bin/tree-sitter parse ../../test-filetypes/rescript_print.res
(source_file [0, 0] - [1, 0]
  (expression_statement [0, 0] - [0, 14]
    (call_expression [0, 0] - [0, 14]
      function: (pipe_expression [0, 0] - [0, 7]
        (number [0, 0] - [0, 1])
        (polyvar_identifier [0, 5] - [0, 7]))
      arguments: (arguments [0, 7] - [0, 14]
        (string [0, 8] - [0, 13]
          (string_fragment [0, 9] - [0, 12]))))))
Done in 0.47s.

Originally posted by @aspeddro in #181 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions