aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/parse.c b/parse.c
index a5ad136b..34c021c6 100644
--- a/parse.c
+++ b/parse.c
@@ -506,12 +506,12 @@ PARSER(parse_int) {
return NewAST(ctx->file, start, pos, Num, .n=n, .bits=64);
}
- match(&pos, "_");
auto bits = IBITS_UNSPECIFIED;
- if (match(&pos, "i64")) bits = IBITS64;
- else if (match(&pos, "i32")) bits = IBITS32;
- else if (match(&pos, "i16")) bits = IBITS16;
- else if (match(&pos, "i8")) bits = IBITS8;
+ if (match(&pos, "[64]")) bits = IBITS64;
+ else if (match(&pos, "[32]")) bits = IBITS32;
+ else if (match(&pos, "[16]")) bits = IBITS16;
+ else if (match(&pos, "[8]")) bits = IBITS8;
+ else if (match(&pos, "[B]")) bits = IBITS_BYTE;
// else if (match(&pos, ".") || match(&pos, "e")) return NULL; // looks like a float