Skip to content

Commit

Permalink
Fixed grammar definition for catch-handle expression.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Jun 30, 2024
1 parent 4266ccb commit 0cb9db1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions grammar.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ block_expr := "{" (statement)* "}"
render_expr := "render" expression

catch_expr :=
"catch" expression
"handle" <IDENTIFIER> expression
"then" expression
"catch" block_expr
"handle" <IDENTIFIER> block_expr
"then" block_expr

do_expr :=
"do" expression
Expand Down
6 changes: 3 additions & 3 deletions site/grammar.pug
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ html(lang="en")
| render_expr := &quot;render&quot; expression
|
| catch_expr :=
| &quot;catch&quot; expression
| &quot;handle&quot; &lt;IDENTIFIER&gt; expression
| &quot;then&quot; expression
| &quot;catch&quot; block_expr
| &quot;handle&quot; &lt;IDENTIFIER&gt; block_expr
| &quot;then&quot; block_expr
|
| do_expr :=
| &quot;do&quot; expression
Expand Down

0 comments on commit 0cb9db1

Please sign in to comment.