chiark / gitweb /
generate: Do not tolerate unclosed nested scopes at EOF
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Dec 2019 00:51:43 +0000 (00:51 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 30 Dec 2019 11:35:15 +0000 (11:35 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
generate

index 52a0ec8..2e77df3 100755 (executable)
--- a/generate
+++ b/generate
@@ -277,6 +277,7 @@ sub process_input_mk ($$$$) {
            }
        }
     }
+    die "unclosed $nest[0][0]" if @nest;
     $input->error and die "read $f: $!\n";
     close $input or die "close $f: $!\n";
 }