Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 44db3d5

Browse files
committedDec 28, 2024··
fix: always ensure K&R functions have at least 1 declaration
1 parent 3efee11 commit 44db3d5

File tree

3 files changed

+56997
-57886
lines changed

3 files changed

+56997
-57886
lines changed
 

‎grammar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ module.exports = grammar({
249249
optional($.ms_call_modifier),
250250
$._declaration_specifiers,
251251
field('declarator', alias($._old_style_function_declarator, $.function_declarator)),
252-
repeat($.declaration),
252+
repeat1($.declaration),
253253
field('body', $.compound_statement),
254254
),
255255

‎src/grammar.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)