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/inc/lexer.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/inc/lexer.h') diff --git a/src/inc/lexer.h b/src/inc/lexer.h index c3999e7..f323f58 100644 --- a/src/inc/lexer.h +++ b/src/inc/lexer.h @@ -8,6 +8,7 @@ enum token_type { NEWLINE, SPACE, + INSTR_START, NOP, JBC, JB, @@ -61,6 +62,7 @@ enum token_type { DATA, BIT, INCLUDE, + INSTR_END, HASH, DOLLAR, @@ -71,13 +73,16 @@ enum token_type { COLON, SEMICOLON, + NUM_START, DEC_NUM, HEX_NUM, BIN_NUM, + NUM_END, STRING, // Registers + REGS_START, ACCU, ATR0, ATR1, @@ -89,6 +94,7 @@ enum token_type { R5, R6, R7, + REGS_END, }; struct token { -- cgit v1.2.3