Skip to content

Commit

Permalink
Merge pull request #364 from tree-sitter/generation
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n authored Sep 25, 2023
2 parents 1d3a1f9 + 3894c16 commit 1b4c2fa
Show file tree
Hide file tree
Showing 4 changed files with 490,049 additions and 489,293 deletions.
9 changes: 5 additions & 4 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,11 @@ module.exports = grammar({

rules: {
// TopStats ::= TopStat {semi TopStat}
compilation_unit: $ => seq(
optional($._shebang),
optional(trailingSep1($._semicolon, $._top_level_definition)),
),
compilation_unit: $ =>
seq(
optional($._shebang),
optional(trailingSep1($._semicolon, $._top_level_definition)),
),

_top_level_definition: $ =>
choice(
Expand Down
Loading

0 comments on commit 1b4c2fa

Please sign in to comment.