Disallow empty bodies in control flow statements, added 'pass' keyword

Fixed #170
This commit is contained in:
2025-01-09 11:03:03 +11:00
parent 9de9c85bea
commit 90ffe9b40e
4 changed files with 28 additions and 17 deletions

View File

@@ -0,0 +1,9 @@
//these are allowed
/* EMPTY */;
if (true) { }
if (true) pass;
//these are not allowed
// if (true) /* EMPTY */;