Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | asdfasdf. asdf |
| 2 | asdfasdf. asdf |
| 3 | asdfasdf. asdf |
| 4 | asdfasdf. asdf |
| 5 | asdfasdf. asdf |
| 6 | asdfasdf. asdf |
| 7 | asdfasdf. asdf |
| 8 | asdfasdf asdf |
| 9 | asdfasdf asdf |
| 10 | asdfasdf asdf |
| 11 | asdfasdf asdf |
| 12 | asdfasdf asdf |
| 13 | asdfasdf asdf |
| 14 | asdfasdf asdf |
Bram Moolenaar | 06a108f | 2010-07-10 14:10:50 +0200 | [diff] [blame] | 15 | zx cvn. as dfg? hjkl iop! ert ernop |
| 16 | zx cvn. as dfg? hjkl iop! ert ernop |
| 17 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 18 | asdfasdf. asdf |
| 19 | asdfasdf. asdf |
| 20 | asdfasdf. asdf |
| 21 | asdfasdf. asdf |
| 22 | asdfasdf. asdf |
| 23 | asdfasdf. asdf |
| 24 | asdfasdf. asdf |
| 25 | asdfasdf asdf |
| 26 | asdfasdf asdf |
| 27 | asdfasdf asdf |
| 28 | asdfasdf asdf |
| 29 | asdfasdf asdf |
| 30 | asdfasdf asdf |
| 31 | asdfasdf asdf |
Bram Moolenaar | 06a108f | 2010-07-10 14:10:50 +0200 | [diff] [blame] | 32 | zx cvn. as dfg? hjkl iop! ert enop |
| 33 | zx cvn. as dfg? hjkl iop! ert ernop |
| 34 | |
| 35 | asdfasdf. asdf |
| 36 | asdfasdf. asdf |
| 37 | asdfasdf. asdf |
| 38 | asdfasdf. asdf |
| 39 | asdfasdf. asdf |
| 40 | asdfasdf. asdf |
| 41 | asdfasdf. asdf |
| 42 | asdfasdf asdf |
| 43 | asdfasdf asdf |
| 44 | asdfasdf asdf |
| 45 | asdfasdf asdf |
| 46 | asdfasdf asdf |
| 47 | asdfasdf asdf |
| 48 | asdfasdf asdf |
| 49 | zx cvn. as dfg? hjkl iop! ert a |
Bram Moolenaar | 8134039 | 2012-06-06 16:12:59 +0200 | [diff] [blame] | 50 | |
| 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. |
| 59 | if (condition) // Remove the next comment leader! OK, I will. |
| 60 | action(); |
| 61 | if (condition) // Remove the next comment leader! OK, I will. |
| 62 | action(); |
| 63 | } |
| 64 | |
Bram Moolenaar | 3d1956b | 2014-04-29 14:44:35 +0200 | [diff] [blame] | 65 | 1 this shouldn't be deleted |
| 66 | 2 this shouldn't be deleted |
| 67 | 3 this shouldn't be deleted |
| 68 | 4 this should be deleted3 |
| 69 | |
| 70 | 6 this shouldn't be deleted vim5 |
| 71 | 7 this shouldn't be deleted vim6 |
| 72 | 8 this shouldn't be deleted (not touched yet) vim7 |
| 73 | |
Bram Moolenaar | 8134039 | 2012-06-06 16:12:59 +0200 | [diff] [blame] | 74 | |
| 75 | { |
| 76 | /* Make sure the previous comment leader is not removed. */ |
| 77 | /* Make sure the previous comment leader is not removed. */ |
Bram Moolenaar | e04a48f | 2012-06-13 14:01:41 +0200 | [diff] [blame] | 78 | /* 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 Moolenaar | 8134039 | 2012-06-06 16:12:59 +0200 | [diff] [blame] | 80 | // 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. |
| 84 | if (condition) // Remove the next comment leader! OK, I will. |
| 85 | action(); |
| 86 | if (condition) // Remove the next comment leader! OK, I will. |
| 87 | action(); |
| 88 | int i = 7 /* foo *// 3 // comment |
| 89 | ; |
| 90 | int 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 | |
| 95 | Some code!// Make sure backspacing does not remove this comment leader. |
| 96 | } |
| 97 | |