summaryrefslogtreecommitdiff
path: root/tnslc/parse/ast.tnsl
diff options
context:
space:
mode:
authorKai Gunger <kgunger12@gmail.com>2025-12-30 23:16:01 -0500
committerKai Gunger <kgunger12@gmail.com>2025-12-30 23:16:01 -0500
commitaef2a1e4fae812220b29ec939be239cee5225b1a (patch)
tree7464ef01fb4957b8a4e726ea2072ce57ec677077 /tnslc/parse/ast.tnsl
parent3a98cbd4d96041e78cb8748d674e9d5ea311054e (diff)
finding parent scopes
Diffstat (limited to 'tnslc/parse/ast.tnsl')
-rw-r--r--tnslc/parse/ast.tnsl2
1 files changed, 1 insertions, 1 deletions
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()