diff options
Diffstat (limited to 'interpreter')
-rw-r--r-- | interpreter/lex.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/interpreter/lex.c b/interpreter/lex.c index 180c23e..8946252 100644 --- a/interpreter/lex.c +++ b/interpreter/lex.c @@ -66,6 +66,10 @@ token_list* lex(token_list* list, char* input) { case ',': list->elem.kind = TOKEN_COMMA; break; case '!': list->elem.kind = TOKEN_STRICT; break; default: + if (input[0] == '/' && input[1] == '/') { + while (input && input[0] != '\n') input++; + break; + } if (input[0] == 'c' && input[1] == 'o' && input[2] == 'd' && input[3] == 'e' && is_space_char(input[4])) { list->elem.kind = TOKEN_CODE; |