Skip to content

Error: and keyword scanner #228

Open
@aspeddro

Description

@aspeddro
Collaborator
let andd = [1, 2, 3]

andd[0]->Js.log
andd[1]->Js.log

Playground

(source_file [0, 0] - [4, 0]
  (ERROR [0, 0] - [3, 15]
    (let_binding [0, 4] - [0, 20]
      pattern: (value_identifier [0, 4] - [0, 8])
      body: (array [0, 11] - [0, 20]
        (number [0, 12] - [0, 13])
        (number [0, 15] - [0, 16])
        (number [0, 18] - [0, 19])))
    (ERROR [2, 3] - [3, 9]
      (value_identifier [2, 3] - [2, 4])
      (array_pattern [2, 4] - [2, 7]
        (number [2, 5] - [2, 6]))
      (module_identifier [2, 9] - [2, 11])
      (ERROR [3, 3] - [3, 4])
      (array_pattern [3, 4] - [3, 7]
        (number [3, 5] - [3, 6])))
    (module_identifier [3, 9] - [3, 11])))

Activity

linked a pull request that will close this issue on Jun 9, 2023
CarlOlson

CarlOlson commented on Jun 27, 2024

@CarlOlson
Contributor

This looks like the same issue I have:

let and_ = (a, b) => (a, b)

let fn = () => {
  let x = 1

  and_(x, 2)->and_(3)
}

Playground

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 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

      Participants

      @CarlOlson@aspeddro

      Issue actions

        Error: `and` keyword scanner · Issue #228 · rescript-lang/tree-sitter-rescript