blob: 94b391124aef87b9bd373b26ed996d801182ab53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/* $NetBSD: lsym_newline.c,v 1.5 2023/06/09 22:01:26 rillig Exp $ */
/*
* Tests for the token lsym_newline, which represents a forced line break in
* the source code.
*
* A newline ends an end-of-line comment that has been started with '//'.
*
* When a line ends with a backslash immediately followed by '\n', these two
* characters are merged and continue the logical line (C11 5.1.1.2p1i2).
*
* In other contexts, a newline is an ordinary space character from a
* compiler's point of view. Indent preserves most line breaks though.
*
* See also:
* lsym_form_feed.c
*/
//indent input
int var=
1
+2
+3
+4;
//indent end
//indent run
int var =
1
+ 2
+ 3
+ 4;
//indent end
// Trim trailing blank lines.
//indent input
int x;
//indent end
//indent run -di0
int x;
//indent end
|