@@ -255,6 +255,10 @@ lexer_scan(struct rifle_state *state, struct token *res)
|
||||
res->type = TT_SLASH;
|
||||
res->c = c;
|
||||
return 0;
|
||||
case ':':
|
||||
res->type = TT_COLON;
|
||||
res->c = c;
|
||||
return 0;
|
||||
default:
|
||||
if (lexer_scan_ident(state, c, res) == 0) {
|
||||
lexer_check_kw(state, res);
|
||||
|
||||
@@ -40,6 +40,7 @@ static const char *toktab[] = {
|
||||
[TT_MINUS] = qtok("-"),
|
||||
[TT_STAR] = qtok("*"),
|
||||
[TT_SLASH] = qtok("/"),
|
||||
[TT_COLON] = qtok(":"),
|
||||
[TT_F] = qtok(".f"),
|
||||
[TT_EXTERN] = qtok(".extern")
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user