commit 09cff0d2bdc2e0787154bedb77926d69e5393b11 (tree)
parent eea2de108d686e36996ff698feec4c0c6574cb15
Author: Andrew Kelley <andrew@ziglang.org>
Date: Thu, 9 May 2019 20:11:56 -0400
fix translate-c regression
introduced in eb65410b624d3aa8c56e7f2d2e68502030f8e981
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/c_tokenizer.cpp b/src/c_tokenizer.cpp
@@ -265,6 +265,7 @@ void tokenize_c_macro(CTokenize *ctok, const uint8_t *c) {
ctok->state = CTokStateStart;
break;
default:
+ end_token(ctok);
ctok->state = CTokStateStart;
continue;
}