summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-05-14 23:32:12 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-05-14 23:32:12 +0800
commit6b459cee4eec7f75388901e80af71993eb3a90b3 (patch)
tree31350c9ad6c120bcafd6065caa1d0532c18f42b5
parent3a3f95d0c0b64ae2c5c702a50f6d26a35931bf48 (diff)
downloadmrust-6b459cee4eec7f75388901e80af71993eb3a90b3.tar.gz
Lex - Handle i128/u128 literals
-rw-r--r--src/parse/lex.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parse/lex.cpp b/src/parse/lex.cpp
index 4cd9954f..71ccbfb2 100644
--- a/src/parse/lex.cpp
+++ b/src/parse/lex.cpp
@@ -463,11 +463,13 @@ Token Lexer::getTokenInt()
else if(suffix == "i16") num_type = CORETYPE_I16;
else if(suffix == "i32") num_type = CORETYPE_I32;
else if(suffix == "i64") num_type = CORETYPE_I64;
+ else if(suffix == "i128") num_type = CORETYPE_I128;
else if(suffix == "isize") num_type = CORETYPE_INT;
else if(suffix == "u8") num_type = CORETYPE_U8;
else if(suffix == "u16") num_type = CORETYPE_U16;
else if(suffix == "u32") num_type = CORETYPE_U32;
else if(suffix == "u64") num_type = CORETYPE_U64;
+ else if(suffix == "u128") num_type = CORETYPE_U128;
else if(suffix == "usize") num_type = CORETYPE_UINT;
else if(suffix == "f32") num_type = CORETYPE_F32;
else if(suffix == "f64") num_type = CORETYPE_F64;