Re: [PATCH 6/6] grep: show non-empty lines before functions with -W

2017-11-21 Thread Stefan Beller
On Mon, Nov 20, 2017 at 2:07 PM, René Scharfe wrote: > Am 20.11.2017 um 21:39 schrieb Stefan Beller: >> On Sat, Nov 18, 2017 at 10:08 AM, René Scharfe wrote: >>> Non-empty lines before a function definition are most likely comments >>> for that function and thus

Re: [PATCH 6/6] grep: show non-empty lines before functions with -W

2017-11-20 Thread René Scharfe
Am 20.11.2017 um 21:39 schrieb Stefan Beller: > On Sat, Nov 18, 2017 at 10:08 AM, René Scharfe wrote: >> Non-empty lines before a function definition are most likely comments >> for that function and thus relevant. Include them in function context. >> >> Such a non-empty line might

Re: [PATCH 6/6] grep: show non-empty lines before functions with -W

2017-11-20 Thread Stefan Beller
On Sat, Nov 18, 2017 at 10:08 AM, René Scharfe wrote: > Non-empty lines before a function definition are most likely comments > for that function and thus relevant. Include them in function context. > > Such a non-empty line might also belong to the preceding function if > there is

[PATCH 6/6] grep: show non-empty lines before functions with -W

2017-11-18 Thread René Scharfe
Non-empty lines before a function definition are most likely comments for that function and thus relevant. Include them in function context. Such a non-empty line might also belong to the preceding function if there is no separating blank line. Stop extending the context upwards also at the