Skip to content

Commit 610cf76

Browse files
committed
support const
1 parent 8796ef8 commit 610cf76

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ast/node.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ func (f *ExCall) Pos() Pos { return f.ExCall }
119119
func (f *ExCall) Cmd() Cmd { return *f.ExArg.Cmd }
120120

121121
// vimlparser: LET .ea .op .left .list .rest .right
122+
// vimlparser: CONST .ea .op .left .list .rest .right
122123
type Let struct {
123124
Let Pos // position of starting the :let
124125
ExArg ExArg // Ex command arg

go/export.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func newAstNode(n *VimNode, filename string) ast.Node {
100100
FuncCall: newAstNode(n.left, filename).(*ast.CallExpr),
101101
}
102102

103-
case NODE_LET:
103+
case NODE_LET, NODE_CONST:
104104
return &ast.Let{
105105
Let: pos,
106106
ExArg: newExArg(*n.ea, filename),

0 commit comments

Comments
 (0)