Skip to content

Commit

Permalink
Merge pull request #362 from tree-sitter/generation
Browse files Browse the repository at this point in the history
chore: generate and sync latest changes
  • Loading branch information
ckipp01 authored Sep 20, 2023
2 parents 8f070fe + 2b2b828 commit aa84398
Show file tree
Hide file tree
Showing 3 changed files with 497,625 additions and 483,860 deletions.
11 changes: 7 additions & 4 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1116,10 +1116,13 @@ module.exports = grammar({
"if",
field("condition", $._if_condition),
field("consequence", $._indentable_expression),
optional(seq(
optional(";"),
"else",
field("alternative", $._indentable_expression))),
optional(
seq(
optional(";"),
"else",
field("alternative", $._indentable_expression),
),
),
),

// NOTE(susliko): _if_condition and its magic dynamic precedence were introduced as a fix to
Expand Down
Loading

0 comments on commit aa84398

Please sign in to comment.