From c27837a807ceba7e73c8983053a68b590cec79dd Mon Sep 17 00:00:00 2001 From: Able Date: Mon, 24 May 2021 01:18:36 -0500 Subject: [PATCH] Slightly more curse --- able-script-test/melo-hello.able | 2 +- src/lexer.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/able-script-test/melo-hello.able b/able-script-test/melo-hello.able index ac4d9f5..e8fc7b9 100644 --- a/able-script-test/melo-hello.able +++ b/able-script-test/melo-hello.able @@ -1,3 +1,3 @@ var hi = "wonk"; melo hi; -hi print; # Should error out +hi print; owo Should error out diff --git a/src/lexer.rs b/src/lexer.rs index dae92c2..5ecaa8a 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -148,7 +148,7 @@ pub enum Token { #[token(",")] Comma, - #[regex(r"#.*")] + #[regex(r"owo.*")] Comment, // Operators @@ -186,7 +186,7 @@ pub enum Token { #[token("|")] LogOr, - #[token("!")] + #[token("!|aint")] // also add aint as a not keyword LogNot, /// Base52 based character ('a')