From 485e869c90a46c6c1e1f990f15c7909b600611f4 Mon Sep 17 00:00:00 2001 From: greg Date: Fri, 1 Dec 2017 02:58:09 -0800 Subject: [PATCH] Fix bug --- src/rukka_lang/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rukka_lang/mod.rs b/src/rukka_lang/mod.rs index d0d2635..0127635 100644 --- a/src/rukka_lang/mod.rs +++ b/src/rukka_lang/mod.rs @@ -82,7 +82,7 @@ fn tokenize(input: &mut Peekable) -> Vec { Some('(') => tokens.push(LParen), Some(')') => tokens.push(RParen), Some(c) if c.is_whitespace() => continue, - Some(_) => { + Some(c) => { let sym: String = input.peeking_take_while(|next| { match *next { '(' | ')' => false, @@ -90,7 +90,7 @@ fn tokenize(input: &mut Peekable) -> Vec { _ => true } }).collect(); - tokens.push(Symbol(sym)); + tokens.push(Symbol(format!("{}{}", c, sym))); } } }