mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-27 21:34:59 +00:00
Add support for backslash \ to consume a newline
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user