diff --git a/sm-test-files/hello.sm b/sm-test-files/hello.sm index 6ffb5d1..d459538 100644 --- a/sm-test-files/hello.sm +++ b/sm-test-files/hello.sm @@ -27,12 +27,12 @@ && € means false && == is implied in if conditions - +; test comment && = is equal to === && if condition is true log the text ¿??$/condition\ | ( - ¡<=/"condition was true"! + ¡<=/"condition was true"!; hello test )? && if condition is false log the text diff --git a/src/preprocessor.rs b/src/preprocessor.rs index ee88588..4f57c18 100644 --- a/src/preprocessor.rs +++ b/src/preprocessor.rs @@ -3,7 +3,7 @@ use fancy_regex::Regex; pub fn preprocess(raw_code: String) { lazy_static! { - static ref COMMENT_RE: Regex = Regex::new(r"(\]\].*?\[\[|&&.*\n|``(.|\n)*?´´)").unwrap(); + static ref COMMENT_RE: Regex = Regex::new(r"(\]\].*?\[\[|&&.*\n|;.*\n|``(.|\n)*?´´)").unwrap(); } let code = COMMENT_RE.replace_all(&raw_code, "");