diff options
| author | Chloe M. <chloe@mirocom.org> | 2026-05-23 08:12:41 -0400 |
|---|---|---|
| committer | Chloe M. <chloe@mirocom.org> | 2026-05-23 08:13:45 -0400 |
| commit | f6e7360fd5aa5e8870579f0f6ef9a55c73de6c74 (patch) | |
| tree | 98b99c0fedbf114dc6d5336fb113f85fa633ac34 /core | |
| parent | 86645eb137a6d793ea095510ee08b8313c9d0cbe (diff) | |
core: lexer: Add token for 'return' keyword
Signed-off-by: Chloe M. <chloe@mirocom.org>
Diffstat (limited to 'core')
| -rw-r--r-- | core/lexer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/lexer.c b/core/lexer.c index bc40542..a9ffac1 100644 --- a/core/lexer.c +++ b/core/lexer.c @@ -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; + } } } |
