aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.c
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-20 00:26:48 +0900
committernsfisis <nsfisis@gmail.com>2025-08-20 00:26:48 +0900
commit318db06a494fa8a707aa04eab029abb74932885e (patch)
tree270e99fd418b14afc5612377a3ec98cb1308bc97 /io.c
parenteb22f9bbc2f2596c2c690960852e29eaed04ea09 (diff)
downloadducc-318db06a494fa8a707aa04eab029abb74932885e.tar.gz
ducc-318db06a494fa8a707aa04eab029abb74932885e.tar.zst
ducc-318db06a494fa8a707aa04eab029abb74932885e.zip
chore: add .editorconfig
Diffstat (limited to 'io.c')
-rw-r--r--io.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/io.c b/io.c
index dcfbd08..5cd5e86 100644
--- a/io.c
+++ b/io.c
@@ -62,9 +62,8 @@ char infile_peek_char(InFile* f) {
if (c == '\\') {
char c2 = f->buf[f->pos + 1];
// C23: 5.1.1.2
- // A source file that is not empty shall end in a new-line character,
- // which shall not be immediately preceded by a backslash character
- // before any such splicing takes place.
+ // A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by
+ // a backslash character before any such splicing takes place.
if (c2 == '\0') {
fatal_error("%s:%d: <new-line> expected, but got <eof>", f->loc.filename, f->loc.line);
}