blob: 9dc07ed46bb6869923915a66086b938afec71bc2 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001asdfasdf. asdf
2asdfasdf. asdf
3asdfasdf. asdf
4asdfasdf. asdf
5asdfasdf. asdf
6asdfasdf. asdf
7asdfasdf. asdf
8asdfasdf asdf
9asdfasdf asdf
10asdfasdf asdf
11asdfasdf asdf
12asdfasdf asdf
13asdfasdf asdf
14asdfasdf asdf
Bram Moolenaar06a108f2010-07-10 14:10:50 +020015zx cvn. as dfg? hjkl iop! ert ernop
16zx cvn. as dfg? hjkl iop! ert ernop
17
Bram Moolenaar071d4272004-06-13 20:20:40 +000018asdfasdf. asdf
19asdfasdf. asdf
20asdfasdf. asdf
21asdfasdf. asdf
22asdfasdf. asdf
23asdfasdf. asdf
24asdfasdf. asdf
25asdfasdf asdf
26asdfasdf asdf
27asdfasdf asdf
28asdfasdf asdf
29asdfasdf asdf
30asdfasdf asdf
31asdfasdf asdf
Bram Moolenaar06a108f2010-07-10 14:10:50 +020032zx cvn. as dfg? hjkl iop! ert enop
33zx cvn. as dfg? hjkl iop! ert ernop
34
35asdfasdf. asdf
36asdfasdf. asdf
37asdfasdf. asdf
38asdfasdf. asdf
39asdfasdf. asdf
40asdfasdf. asdf
41asdfasdf. asdf
42asdfasdf asdf
43asdfasdf asdf
44asdfasdf asdf
45asdfasdf asdf
46asdfasdf asdf
47asdfasdf asdf
48asdfasdf asdf
49zx cvn. as dfg? hjkl iop! ert a
Bram Moolenaar81340392012-06-06 16:12:59 +020050
51
52{
53/* Make sure the previous comment leader is not removed. */
54/* Make sure the previous comment leader is not removed. */
55// Should the next comment leader be left alone? Yes.
56// Should the next comment leader be left alone? Yes.
57/* Here the comment leader should be left intact. */ // And so should this one.
58/* Here the comment leader should be left intact. */ // And so should this one.
59if (condition) // Remove the next comment leader! OK, I will.
60 action();
61if (condition) // Remove the next comment leader! OK, I will.
62 action();
63}
64
Bram Moolenaar3d1956b2014-04-29 14:44:35 +0200651 this shouldn't be deleted
662 this shouldn't be deleted
673 this shouldn't be deleted
684 this should be deleted3
69
706 this shouldn't be deleted vim5
717 this shouldn't be deleted vim6
728 this shouldn't be deleted (not touched yet) vim7
73
Bram Moolenaar81340392012-06-06 16:12:59 +020074
75{
76/* Make sure the previous comment leader is not removed. */
77/* Make sure the previous comment leader is not removed. */
Bram Moolenaare04a48f2012-06-13 14:01:41 +020078/* List: item1 foo bar baz foo bar baz item2 foo bar baz foo bar baz */
79/* List: item1 foo bar baz foo bar baz item2 foo bar baz foo bar baz */
Bram Moolenaar81340392012-06-06 16:12:59 +020080// Should the next comment leader be left alone? Yes.
81// Should the next comment leader be left alone? Yes.
82/* Here the comment leader should be left intact. */ // And so should this one.
83/* Here the comment leader should be left intact. */ // And so should this one.
84if (condition) // Remove the next comment leader! OK, I will.
85 action();
86if (condition) // Remove the next comment leader! OK, I will.
87 action();
88int i = 7 /* foo *// 3 // comment
89 ;
90int i = 7 /* foo *// 3 // comment
91 ;
92># Note that the last character of the ending comment leader (left angle bracket) is a comment leader itself. Make sure that this comment leader is not removed from the next line #< < On this line a new comment is opened which spans 2 lines. This comment should retain its comment leader.
93># Note that the last character of the ending comment leader (left angle bracket) is a comment leader itself. Make sure that this comment leader is not removed from the next line #< < On this line a new comment is opened which spans 2 lines. This comment should retain its comment leader.
94
95Some code!// Make sure backspacing does not remove this comment leader.
96}
97