Skip to content

Commit 1f3fc9d

Browse files
committed
support :const
1 parent 1709f07 commit 1f3fc9d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ func newAstNode(n *VimNode, filename string) ast.Node {
101101
}
102102

103103
case NODE_LET:
104+
fallthrough
105+
case NODE_CONST:
104106
return &ast.Let{
105107
Let: pos,
106108
ExArg: newExArg(*n.ea, filename),

0 commit comments

Comments
 (0)