File: valid_comments.rs

package info (click to toggle)
diffuse 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,160 kB
  • sloc: python: 7,689; xml: 5,993; sh: 61; makefile: 9
file content (46 lines) | stat: -rw-r--r-- 548 bytes parent folder | download
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
pub fn comments() -> () {
    // line comment

    // line comment
    // line comment

    //

    //

    //
    //

    // line comment // test

    /* line comment */

    /* line comment */
    /* line comment */

    /* block
       comment
    */

    /*
       block
       comment
    */

    /**
       block
       comment
    */

    /**/

    /* */

    /***/

    // Not supported yet:
    //
    // Recursive block comment:
    // - This is valid: /* line /* test */ comment */
    // - This is invalid: /* line /* test comment */
}