File: comment_test.p

package info (click to toggle)
scite 5.5.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,176 kB
  • sloc: cpp: 175,852; ansic: 21,482; python: 7,014; makefile: 934; sh: 257; perl: 252; ruby: 217; sql: 194; php: 63; vhdl: 51; erlang: 47; objc: 22; modula3: 21; cobol: 18; lisp: 18; asm: 17; fortran: 12; ml: 11; xml: 7; tcl: 6
file content (70 lines) | stat: -rw-r--r-- 1,399 bytes parent folder | download | duplicates (2)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//line comment

/* block comment */

/* block comment on 
multiple lines */

/* //line comment within block comment */

// /*block comment within line comment */

// using open-block-comment symbol alone on line comment /*

/* /* nested block comment */ */

DISPLAY "this line of code is a test". 
DISPLAY "//this line of code is a test".
DISPLAY "/* this line of code is a test */".

// using close-block-comment symbol alone on line comment */

// /* improperly closed block comment within line comment */ */

/* 
//line comment 1 in block comment
//line comment 2 in block comment
//line comment 3 in block comment
*/

/*
block comment text
//line comment text
/* inner block comment text*/
*/

DISPLAY "This is a open-block-comment symbol /*".
DISPLAY "This is a close-block-comment symbol */".

//* line comment plus * looks like open-block-comment


DISPLAY "this line of code is a test".

/*display statement within block comment
DISPLAY "this is a string".
*/

DISPLAY "//line comment within string".

DISPLAY "/* //line comment within block comment within string */".
                                                                        
/* Improperly closed block comment */ */

DISPLAY "this line of code is a test".

DISPLAY "line comment with leading whitespace". // this is a line comment
DISPLAY "line comment without leading whitespace".// this is not a line comment