Skip to content

:let is parsed as NODE_EXCMD (not NODE_LET) #117

@tyru

Description

@tyru
Member

Problem

let

is parsed as

(excmd "let")

Expected

(let)

Activity

tyru

tyru commented on Jul 19, 2019

@tyru
MemberAuthor
let var

is also

(excmd "let var")
tyru

tyru commented on Jul 19, 2019

@tyru
MemberAuthor

Currently :const implementation is same #119

tyru

tyru commented on Aug 2, 2019

@tyru
MemberAuthor
let var

should be

(let () var)

because the second argument of assignment :let node is operator.
compiler should not allow arbitrary variable name here (() means nil).

let n = 42
(let = a 42)
linked a pull request that will close this issue on Aug 2, 2019
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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @tyru

      Issue actions

        `:let` is parsed as NODE_EXCMD (not NODE_LET) · Issue #117 · vim-jp/vim-vimlparser