From 37b0f4dabc6ee6d7fc03291a62460cffec7d4bcd Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Wed, 9 Nov 2022 13:00:09 -0600 Subject: [PATCH] Document escape of new lines I'm not sure if line continuations are covered anywhere else in the docs, but I think the escapes section of the language page is a good place to mention them. --- doc_src/language.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc_src/language.rst b/doc_src/language.rst index 89c9d38a4..871d0dfab 100644 --- a/doc_src/language.rst +++ b/doc_src/language.rst @@ -148,6 +148,8 @@ The special characters and their escape sequences are: - ``\"`` escapes the quote character. - ``\'`` escapes the apostrophe character. +As a special case, ``\`` immediately followed by a literal new line is a "continuation" and tells fish to ignore the line break and resume input at the start of the next line (without introducing any whitespace or terminating a token). + .. _redirects: Input/Output Redirection