vim-vimlparser icon indicating copy to clipboard operation
vim-vimlparser copied to clipboard

`:let` is parsed as NODE_EXCMD (not NODE_LET)

Open tyru opened this issue 6 years ago • 3 comments
trafficstars

Problem

let

is parsed as

(excmd "let")

Expected

(let)

tyru avatar Jul 19 '19 14:07 tyru

let var

is also

(excmd "let var")

tyru avatar Jul 19 '19 14:07 tyru

Currently :const implementation is same #119

tyru avatar Jul 19 '19 15:07 tyru

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)

tyru avatar Aug 02 '19 11:08 tyru