diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-13 00:05:12 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-13 01:38:56 +0900 |
| commit | 8de7fa9da5fd8015f4fcc826b9270061b7b89478 (patch) | |
| tree | ec9c1e56f179be207c31a113a0a96210f7509431 /src/tokenize.c | |
| parent | d41a97e957ef616d194f60b9b79820cd0162d920 (diff) | |
| download | ducc-8de7fa9da5fd8015f4fcc826b9270061b7b89478.tar.gz ducc-8de7fa9da5fd8015f4fcc826b9270061b7b89478.tar.zst ducc-8de7fa9da5fd8015f4fcc826b9270061b7b89478.zip | |
feat: implement -E flag (preprocess only)
Diffstat (limited to 'src/tokenize.c')
| -rw-r--r-- | src/tokenize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tokenize.c b/src/tokenize.c index 7ba00cd..c897b02 100644 --- a/src/tokenize.c +++ b/src/tokenize.c @@ -19,7 +19,7 @@ static void tokenize_all(Lexer* l) { for (size_t pos = 0; pos < l->src->len; ++pos) { Token* pp_tok = &l->src->data[pos]; TokenKind k = pp_tok->kind; - if (k == TokenKind_whitespace || k == TokenKind_newline) { + if (k == TokenKind_removed || k == TokenKind_whitespace || k == TokenKind_newline) { continue; } Token* tok = tokens_push_new(l->tokens); |
