aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 32287af03..1cff4b573 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -2257,17 +2257,17 @@ AstNode *parse_decl(AstFile *f, AstNodeArray names) {
AstNodeArray values = {};
AstNode *type = NULL;
- // for_array(i, names) {
- // AstNode *name = names[i];
- // if (name->kind == AstNode_Ident) {
- // String n = name->Ident.string;
- // // NOTE(bill): Check for reserved identifiers
- // if (n == "context") {
- // syntax_error(ast_node_token(name), "`context` is a reserved identifier");
- // break;
- // }
- // }
- // }
+ for_array(i, names) {
+ AstNode *name = names[i];
+ if (name->kind == AstNode_Ident) {
+ String n = name->Ident.string;
+ // NOTE(bill): Check for reserved identifiers
+ if (n == "context") {
+ syntax_error(ast_node_token(name), "`context` is a reserved identifier");
+ break;
+ }
+ }
+ }
if (allow_token(f, Token_Colon)) {
if (!allow_token(f, Token_type)) {