Skip to content

Commit

Permalink
parser: make type optional in for_phrase
Browse files Browse the repository at this point in the history
Fixes #61
  • Loading branch information
jkbz64 committed Sep 4, 2024
1 parent a8aaa0a commit 4b4540f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ module.exports = grammar({

for_phrase: ($) =>
seq(
field("type", choice(kw("EACH"), kw("FIRST"), kw("LAST"))),
optional(field("type", choice(kw("EACH"), kw("FIRST"), kw("LAST")))),
field("table", choice($.identifier, $.qualified_name)),
optional($.of),
optional($._pre_tuning),
Expand Down

0 comments on commit 4b4540f

Please sign in to comment.