summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/lexer/char_info.h1
-rw-r--r--include/lexer/token.h1
-rw-r--r--src/lexer/char_info.c2
3 files changed, 3 insertions, 1 deletions
diff --git a/include/lexer/char_info.h b/include/lexer/char_info.h
index d9205b0..4f2e398 100644
--- a/include/lexer/char_info.h
+++ b/include/lexer/char_info.h
@@ -60,6 +60,7 @@
#define CHAR_RCURLY MAKE_SINGLE(TOK_RCURLY)
#define CHAR_LSQUARE MAKE_SINGLE(TOK_LSQUARE)
#define CHAR_RSQUARE MAKE_SINGLE(TOK_RSQUARE)
+#define CHAR_ASTER MAKE_SINGLE(TOK_ASTERISK)
#define CHAR_INFO_COUNT 256
diff --git a/include/lexer/token.h b/include/lexer/token.h
index f51b5e9..c6264d0 100644
--- a/include/lexer/token.h
+++ b/include/lexer/token.h
@@ -49,6 +49,7 @@ enum token_kind {
TOK_RCURLY,
TOK_LSQUARE,
TOK_RSQUARE,
+ TOK_ASTERISK,
/*
* Do not modify this ordering without updating parser/types.c
diff --git a/src/lexer/char_info.c b/src/lexer/char_info.c
index 144bbe7..15e3c5f 100644
--- a/src/lexer/char_info.c
+++ b/src/lexer/char_info.c
@@ -60,7 +60,7 @@ uint16_t char_info[CHAR_INFO_COUNT] = {
*/
CHAR_HORZ_WS, 0 , 0 , 0 ,
0 , 0 , 0 , 0 ,
- CHAR_LPAREN , CHAR_RPAREN , 0 , 0 ,
+ CHAR_LPAREN , CHAR_RPAREN , CHAR_ASTER , 0 ,
CHAR_COMMA , 0 , CHAR_DOT , 0 ,
/*