Skip to content

Commit

Permalink
fix: always ensure K&R functions have at least 1 declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Dec 28, 2024
1 parent 3efee11 commit 3aa2995
Show file tree
Hide file tree
Showing 3 changed files with 56,997 additions and 57,886 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ module.exports = grammar({
optional($.ms_call_modifier),
$._declaration_specifiers,
field('declarator', alias($._old_style_function_declarator, $.function_declarator)),
repeat($.declaration),
repeat1($.declaration),
field('body', $.compound_statement),
),

Expand Down
2 changes: 1 addition & 1 deletion src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3aa2995

Please sign in to comment.