eced93bcb8
When showing function context it would be helpful to show comments immediately before declarations, as they are most likely relevant. Add a test for that, but without specifying the choice of lines too rigidly in the test---we may want to stop before and not include "/*" in the future, for example. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
25 lines
334 B
C
25 lines
334 B
C
|
|
/*
|
|
* Hello comment.
|
|
*/
|
|
static void hello(void) // Begin of hello
|
|
{
|
|
/*
|
|
* Classic.
|
|
*/
|
|
putchar('H');
|
|
putchar('e');
|
|
putchar('l');
|
|
putchar('l');
|
|
putchar('o');
|
|
putchar(' ');
|
|
/* delete me from hello */
|
|
putchar('w');
|
|
putchar('o');
|
|
putchar('r');
|
|
putchar('l');
|
|
putchar('d');
|
|
putchar('.');
|
|
putchar('\n');
|
|
} // End of hello
|