diff: parse ws-error-highlight option more strictly
commit3f4f17b51b30262041a2248ef9f966f6248aed50
authorRené Scharfe <l.s.r@web.de>
Sat, 11 Jul 2015 12:58:21 +0000 (11 14:58 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 12 Jul 2015 16:55:23 +0000 (12 09:55 -0700)
treefc338012da740171d079e9db003a18e6fcf4f3a1
parentb8767f791c15f119554c1466af60e4f2433ae971
diff: parse ws-error-highlight option more strictly

Check if a matched token is followed by a delimiter before advancing the
pointer arg.  This avoids accepting composite words like "allnew" or
"defaultcontext" and misparsing them as "new" or "context".

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c