Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
24
Task/Strip-block-comments/Seed7/strip-block-comments.seed7
Normal file
24
Task/Strip-block-comments/Seed7/strip-block-comments.seed7
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
$ include "seed7_05.s7i";
|
||||
|
||||
const proc: main is func
|
||||
local
|
||||
const string: stri is "\
|
||||
\ /**\n\
|
||||
\ * Some comments\n\
|
||||
\ * longer comments here that we can parse.\n\
|
||||
\ *\n\
|
||||
\ * Rahoo\n\
|
||||
\ */\n\
|
||||
\ function subroutine() {\n\
|
||||
\ a = /* inline comment */ b + c ;\n\
|
||||
\ }\n\
|
||||
\ /*/ <-- tricky comments */\n\
|
||||
\\n\
|
||||
\ /**\n\
|
||||
\ * Another comment.\n\
|
||||
\ */\n\
|
||||
\ function something() {\n\
|
||||
\ }";
|
||||
begin
|
||||
writeln(replace2(stri, "/*", "*/", " "));
|
||||
end func;
|
||||
Loading…
Add table
Add a link
Reference in a new issue