Skip to content

Commit

Permalink
Fix bug in parser grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickey Reiss committed Nov 16, 2018
1 parent af999ae commit c45f5e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/ast/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ type AST struct {

type ASTElement struct {
Comment string `parser:"{ @Comment }"`
Model *ASTModel `parser:" 'model' @@"`
Model *ASTModel `parser:"( 'model' @@"`
Enum *ASTEnum `parser:"| 'enum' @@"`
Option *ASTOption `parser:"| 'option' @@"`
Struct *ASTStruct `parser:"| 'struct' @@"`
Struct *ASTStruct `parser:"| 'struct' @@ )"`
}

type ASTModel struct {
Expand Down

0 comments on commit c45f5e2

Please sign in to comment.