diff --git a/mers_lib/src/parsing/mod.rs b/mers_lib/src/parsing/mod.rs index 2e126b1..e737428 100755 --- a/mers_lib/src/parsing/mod.rs +++ b/mers_lib/src/parsing/mod.rs @@ -131,7 +131,7 @@ impl Source { Some(ch) } fn word_splitter(ch: char) -> bool { - ch.is_whitespace() || ".,;)}".contains(ch) + ch.is_whitespace() || ".,;[](){}".contains(ch) } pub fn peek_word(&self) -> &str { self.src[self.i..] diff --git a/mers_lib/src/parsing/statements.rs b/mers_lib/src/parsing/statements.rs index 643cff7..cf623cb 100755 --- a/mers_lib/src/parsing/statements.rs +++ b/mers_lib/src/parsing/statements.rs @@ -49,6 +49,16 @@ pub fn parse(src: &mut Source) -> Result