FIX: valgrind newline semantics after 3.5.0 (partial)
[nobug.git] / doc / verbatim.pawk
blobba9441921e2a34401a57a6caf5fb471eab202eab
1 # Include the code *before* the VERBATIM doc comment
2 # optional characters before 'VERBATIM' will be prepended before the the output,
3 # optional regex after 'VERBATIM' will be removed from the end of the output
4 # for example:
5 #  test;  //foo This is a VERBATIM;
6 # will become
7 #  This is a test 
8 match($0, "(([ \t]*[^ \t]+)*)[ \t]+[^ \t]*"com"([^ ]*) (.*)VERBATIM(.*)", p) {
9     sub(p[5]"$", "", p[1])
10     append(p[3],"", p[4] p[1])
11     next