From 1085b528fe2234240c9187eca8c36cbb0b0dc48b Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 8 Jan 2019 02:38:10 -0800 Subject: [PATCH] Don't care about case-sensitivity --- schala-lang/language/src/tokenizing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schala-lang/language/src/tokenizing.rs b/schala-lang/language/src/tokenizing.rs index c14c547..7b39eb4 100644 --- a/schala-lang/language/src/tokenizing.rs +++ b/schala-lang/language/src/tokenizing.rs @@ -164,7 +164,7 @@ pub fn tokenize(input: &str) -> Vec { '"' => handle_quote(&mut input), '\\' => Backslash, c if c.is_digit(10) => handle_digit(c, &mut input), - c if c.is_alphabetic() || c == '_' => handle_alphabetic(c, &mut input), //TODO I'll probably have to rewrite this if I care about types being uppercase, also type parameterization + c if c.is_alphabetic() || c == '_' => handle_alphabetic(c, &mut input), c if is_operator(&c) => handle_operator(c, &mut input), unknown => Error(format!("Unexpected character: {}", unknown)), };