diff options
| author | gingerBill <bill@gingerbill.org> | 2021-03-14 12:53:57 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-03-14 12:53:57 +0000 |
| commit | 8cc4cba06c31c09b04a7012703eb3c4be03729e2 (patch) | |
| tree | b46ba5b77b53fc54c9c0a3f561a9a04b5b5a861a /src/parser.cpp | |
| parent | 8f6439fa6ba78f17a2c6fcc7f2be7eaa9082a728 (diff) | |
Add support for backslash \ to consume a newline
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 3e2df2c55..c1cda84c2 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -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; |