Add support for backslash \ to consume a newline

This commit is contained in:
gingerBill
2021-03-14 12:53:57 +00:00
parent 8f6439fa6b
commit 8cc4cba06c
2 changed files with 41 additions and 7 deletions

View File

@@ -1262,11 +1262,6 @@ Token peek_token(AstFile *f) {
return {};
}
bool token_is_newline(Token const &tok) {
return tok.kind == Token_Semicolon && tok.string == "\n";
}
bool skip_possible_newline(AstFile *f) {
if ((f->tokenizer.flags & TokenizerFlag_InsertSemicolon) == 0) {
return false;