Skip to content

Commit

Permalink
parcer rules break go's understanding on the right usage
Browse files Browse the repository at this point in the history
  • Loading branch information
can3p committed Apr 14, 2024
1 parent 2b01676 commit 7939626
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/operations/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ var operations = map[string]Operation{
"del": Delete,
}

//nolint:govet
type Call struct {
Name string `@Ident`
Path []PathElement `"(" (@Ident | @String ) ( "." (@Ident | @String) )*`
Arguments []Argument `( "," @@ )* ")"`
}

//nolint:govet
type Argument struct {
Float *float64 ` @Float`
Int *int `| @Int`
Expand Down

0 comments on commit 7939626

Please sign in to comment.