Skip to content

Commit 72976e2

Browse files
committed
Allow extra semicolons in more places
1 parent afa9b38 commit 72976e2

File tree

4 files changed

+412284
-411781
lines changed

4 files changed

+412284
-411781
lines changed

grammar.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ module.exports = grammar({
348348
$.import_statement,
349349
$.procedure_statement,
350350
$.function,
351-
$.subroutine
351+
$.subroutine,
352+
';'
352353
),
353354

354355
interface_statement: $ => seq(
@@ -510,6 +511,7 @@ module.exports = grammar({
510511
$.preproc_def,
511512
$.preproc_function_def,
512513
$.preproc_call,
514+
';',
513515
)),
514516

515517
use_statement: $ => seq(

src/grammar.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7671,6 +7671,10 @@
76717671
{
76727672
"type": "SYMBOL",
76737673
"name": "subroutine"
7674+
},
7675+
{
7676+
"type": "STRING",
7677+
"value": ";"
76747678
}
76757679
]
76767680
},
@@ -9171,6 +9175,10 @@
91719175
{
91729176
"type": "SYMBOL",
91739177
"name": "preproc_call"
9178+
},
9179+
{
9180+
"type": "STRING",
9181+
"value": ";"
91749182
}
91759183
]
91769184
}

0 commit comments

Comments
 (0)