Skip to content

Commit

Permalink
chore(parser): update import to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMarble committed Apr 2, 2022
1 parent 0150174 commit e9f0465
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/keymap/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package keymap
import (
"io"

"github.com/alecthomas/participle"
"github.com/alecthomas/participle/lexer"
"github.com/alecthomas/participle/v2"
"github.com/alecthomas/participle/v2/lexer"
)

var parser = participle.MustBuild(&File{},
Expand Down Expand Up @@ -93,6 +93,6 @@ type Behavior struct {

func Parse(r io.Reader) (*File, error) {
ast := &File{}
err := parser.Parse(r, ast)
err := parser.Parse("", r, ast)
return ast, err
}

0 comments on commit e9f0465

Please sign in to comment.