Re: [PATCH] diff: parse ws-error-highlight option more strictly

2015-07-12 Thread Junio C Hamano
René Scharfe writes: > Check if a matched token is followed by a delimiter before advancing the > pointer arg. This avoids accepting composite words like "allnew" or > "defaultcontext". > > Signed-off-by: Rene Scharfe > --- > diff.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-)

[PATCH] diff: parse ws-error-highlight option more strictly

2015-07-11 Thread René Scharfe
Check if a matched token is followed by a delimiter before advancing the pointer arg. This avoids accepting composite words like "allnew" or "defaultcontext". Signed-off-by: Rene Scharfe --- diff.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/diff.c b/diff.c index 8