From 41672a71251b8c8f10cebba5f1ebd144819f106e Mon Sep 17 00:00:00 2001 From: dkanus Date: Tue, 16 Sep 2025 08:13:56 +0700 Subject: [PATCH] Add token for `goto` --- rottlib/src/lexer/lexing.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rottlib/src/lexer/lexing.rs b/rottlib/src/lexer/lexing.rs index c0a1b1e..08ac024 100644 --- a/rottlib/src/lexer/lexing.rs +++ b/rottlib/src/lexer/lexing.rs @@ -170,6 +170,8 @@ pub enum Token { NativeReplication, // # Control-flow keywords + #[regex("(?i)goto")] + Goto, #[regex("(?i)if")] If, #[regex("(?i)else")]