FIX: NOBUG_LOG env parsing error
[nobug.git] / doc / verbatim.pawk
blobc636c21e454553caf20c262df944ad0d31b2d09e
1 # Include the code *before* the VERBATIM doc comment
2 # optional characters before 'VERBATIM' will be prepended before the the output,
3 # optional spaces after 'VERBATIM' will be removed from the begin of the output
4 # optional regex after 'VERBATIM' will be removed from the end of the output
5 # for example:
7 # ----
8 #   test;  //foo This is a VERBATIM  ;
9 # ----
11 # will become
12 #  This is a test
13 match($0, "(([ \t]*[^ \t]+)*)[ \t]+[^ \t]*"com"([^ ]*) (.*)VERBATIM( *)(.*)", p) {
14     sub("^"p[5], "", p[1])
15     sub(p[6]"$", "", p[1])
16     append(p[3],"", p[4] p[1])
17     next