core: lexer: Add token for 'return' keyword

Signed-off-by: Chloe M. <chloe@mirocom.org>
This commit is contained in:
2026-05-23 08:12:41 -04:00
parent 86645eb137
commit f6e7360fd5
+5
View File
@@ -180,6 +180,11 @@ lexer_check_kw(struct cescal_state *state, struct token *res)
}
break;
case 'r':
if (strcmp(res->s, "return") == 0) {
res->type = TT_RETURN;
return;
}
}
}