Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c411fa6

Browse files
committed
Revised description of blank line handling for the interpreter, based
on a comment from /F.
1 parent fab41f1 commit c411fa6

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

Doc/ref/ref2.tex

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ \subsection{Explicit line joining\label{explicit-joining}}
8989
split across physical lines using a backslash). A backslash is
9090
illegal elsewhere on a line outside a string literal.
9191

92+
9293
\subsection{Implicit line joining\label{implicit-joining}}
9394

9495
Expressions in parentheses, square brackets or curly braces can be
@@ -108,14 +109,17 @@ \subsection{Implicit line joining\label{implicit-joining}}
108109
lines. Implicitly continued lines can also occur within triple-quoted
109110
strings (see below); in that case they cannot carry comments.
110111

111-
\subsection{Blank lines\label{blank-lines}}
112112

113-
A logical line that contains only spaces, tabs, formfeeds and possibly a
114-
comment, is ignored (i.e., no NEWLINE token is generated), except that
115-
during interactive input of statements, an entirely blank logical line
116-
(i.e. one containing not even whitespace or a comment)
117-
terminates a multi-line statement.
118-
\index{blank line}
113+
\subsection{Blank lines \index{blank line}\label{blank-lines}}
114+
115+
A logical line that contains only spaces, tabs, formfeeds and possibly
116+
a comment, is ignored (i.e., no NEWLINE token is generated). During
117+
interactive input of statements, handling of a blank line may differ
118+
depending on the implementation of the read-eval-print loop. In the
119+
standard implementation, an entirely blank logical line (i.e.\ one
120+
containing not even whitespace or a comment) terminates a multi-line
121+
statement.
122+
119123

120124
\subsection{Indentation\label{indentation}}
121125

0 commit comments

Comments
 (0)