From c219c38e854fe15bc47519d2df0d6cbd7bab2ab7 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 21 Apr 2021 00:05:04 +0200 Subject: Started syntax highlighting doesn't work but don't want to fix lel. --- src/parser.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/parser.c') diff --git a/src/parser.c b/src/parser.c index 2e8894b..2f16323 100644 --- a/src/parser.c +++ b/src/parser.c @@ -383,6 +383,7 @@ static u32 parse_line(struct context *ctx, char *str, u32 size) struct token tok = token_resolve(str + str_ind, size - str_ind); if (tok.type == NEWLINE) { ctx->line++; + ctx->column = 0; break; } @@ -602,6 +603,14 @@ static u32 parse_line(struct context *ctx, char *str, u32 size) case BIT: warnings_add(ctx, "Random non-instruction found"); break; + case INSTR_START: + case INSTR_END: + case NUM_START: + case NUM_END: + case REGS_START: + case REGS_END: + warnings_add(ctx, "Got enum boundary"); + break; default: warnings_add(ctx, "Super-unknown instruction"); break; -- cgit v1.2.3