From aef2a1e4fae812220b29ec939be239cee5225b1a Mon Sep 17 00:00:00 2001 From: Kai Gunger Date: Tue, 30 Dec 2025 23:16:01 -0500 Subject: finding parent scopes --- tnslc/parse/ast.tnsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tnslc/parse/ast.tnsl') diff --git a/tnslc/parse/ast.tnsl b/tnslc/parse/ast.tnsl index e38c413..f9ad1f9 100644 --- a/tnslc/parse/ast.tnsl +++ b/tnslc/parse/ast.tnsl @@ -2096,7 +2096,7 @@ int errors_shown = 0 ;; else if (first._type == TTYPE_KEYTP || first._type == TTYPE_USRWD || first.eq("~\0") == true || first.eq("{\0") == true) _ast_decl(fin, mod, ~first) ;; else - _ast_print_err(fin, ~first, "Expected 'import', 'struct', 'asm', block, or declaration in top level\0") + _ast_print_err(fin, ~first, "Expected 'import', 'struct', 'asm', block (starts with '/;'), or type (for variable declaration) in top level\0") Token tmp = produce_next_token(fin, first) first.end() -- cgit v1.2.3