diff options
author | Thomas Rast <trast@student.ethz.ch> | 2009-01-17 17:29:46 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-01-17 10:43:24 -0800 |
commit | bf82940dbf12f066ba42a2a03a5bb626ba22c067 (patch) | |
tree | 641c90caf5c9810fdb009d9ffa25be36c94e9adb /t/t5515/fetch.br-config-explicit-merge_config-explicit | |
parent | color-words: take an optional regular expression describing words (diff) | |
download | tgif-bf82940dbf12f066ba42a2a03a5bb626ba22c067.tar.xz |
color-words: enable REG_NEWLINE to help user
We silently truncate a match at the newline, which may lead to
unexpected behaviour, e.g., when matching "<[^>]*>" against
<foo
bar>
since then "<foo" becomes a word (and "bar>" doesn't!) even though the
regex said only angle-bracket-delimited things can be words.
To alleviate the problem slightly, use REG_NEWLINE so that negated
classes can't match a newline. Of course newlines can still be
matched explicitly.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/fetch.br-config-explicit-merge_config-explicit')
0 files changed, 0 insertions, 0 deletions