| 1 |
;; Test comment syntax |
| 2 |
|
| 3 |
;;comment |
| 4 |
|
| 5 |
;;;;;;;;;;; |
| 6 |
|
| 7 |
;;comment |
| 8 |
|
| 9 |
( ;;comment |
| 10 |
module;;comment |
| 11 |
);;comment |
| 12 |
|
| 13 |
;;) |
| 14 |
;;;) |
| 15 |
;; ;) |
| 16 |
;; (; |
| 17 |
|
| 18 |
(;;) |
| 19 |
|
| 20 |
(;comment;) |
| 21 |
|
| 22 |
(;;comment;) |
| 23 |
|
| 24 |
(;;;comment;) |
| 25 |
|
| 26 |
(;;;;;;;;;;;;;;) |
| 27 |
|
| 28 |
(;(((((((((( ;) |
| 29 |
|
| 30 |
(;)))))))))));) |
| 31 |
|
| 32 |
(;comment";) |
| 33 |
|
| 34 |
(;comment"";) |
| 35 |
|
| 36 |
(;comment""";) |
| 37 |
|
| 38 |
;; ASCII 00-1F, 7F |
| 39 |
(; |
| 40 |
|
| 41 |
;) |
| 42 |
|
| 43 |
;; null-byte followed immediately by end-of-comment delimiter |
| 44 |
(; ;) |
| 45 |
|
| 46 |
|
| 47 |
(;Heiße Würstchen;) |
| 48 |
|
| 49 |
(;;) |
| 50 |
|
| 51 |
(;comment |
| 52 |
comment;) |
| 53 |
|
| 54 |
(;comment;) |
| 55 |
|
| 56 |
(;comment;)((;comment;) |
| 57 |
(;comment;)module(;comment;) |
| 58 |
(;comment;))(;comment;) |
| 59 |
|
| 60 |
(;comment(;nested;)comment;) |
| 61 |
|
| 62 |
(;comment |
| 63 |
(;nested |
| 64 |
;)comment |
| 65 |
;) |
| 66 |
|
| 67 |
(module |
| 68 |
(;comment(;nested(;further;)nested;)comment;) |
| 69 |
) |
| 70 |
|
| 71 |
(;comment;;comment;) |
| 72 |
|
| 73 |
(;comment;;comment |
| 74 |
;) |
| 75 |
|
| 76 |
(module |
| 77 |
(;comment;;comment(;nested;)comment;) |
| 78 |
) |
| 79 |
|
| 80 |
|
| 81 |
;; Newline recognition |
| 82 |
|
| 83 |
(module quote |
| 84 |
"(func (export \"f1\") (result i32)" |
| 85 |
" (i32.const 1)" |
| 86 |
" ;; comment\0a" |
| 87 |
" (return (i32.const 2))" |
| 88 |
"\0a" |
| 89 |
")" |
| 90 |
"(func (export \"f2\") (result i32)" |
| 91 |
" (i32.const 1)" |
| 92 |
" ;; comment\0d" |
| 93 |
" (return (i32.const 2))" |
| 94 |
"\0a" |
| 95 |
")" |
| 96 |
"(func (export \"f3\") (result i32)" |
| 97 |
" (i32.const 1)" |
| 98 |
" ;; comment\0d\0a" |
| 99 |
" (return (i32.const 2))" |
| 100 |
"\0a" |
| 101 |
")" |
| 102 |
) |
| 103 |
|
| 104 |
(assert_return (invoke "f1") (i32.const 2)) |
| 105 |
(assert_return (invoke "f2") (i32.const 2)) |
| 106 |
(assert_return (invoke "f3") (i32.const 2)) |