commit 82c8c704ce0f8b79c61b769f88c41bd957161f2d
parent 82512fcee2e57aad70d7f5ad1cdfd77d04eb67f1
Author: Drew DeVault <sir@cmpwn.com>
Date: Tue, 20 Apr 2021 08:25:33 -0400
haredoc: don't use assembly sources
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/cmd/haredoc/main.ha b/cmd/haredoc/main.ha
@@ -82,6 +82,10 @@ export fn main() void = {
for (let i = 0z; i < len(version.inputs); i += 1) {
const in = version.inputs[i];
+ const ext = path::extension(in.path);
+ if (ext.1 != ".ha") {
+ continue;
+ };
match (scan(in.path)) {
u: ast::subunit => append(decls, u.decls...),
err: error => fmt::fatal("Error: {}", strerror(err)),