]> git.ipfire.org Git - thirdparty/git.git/commit
userdiff-cpp: permit the digit-separating single-quote in numbers
authorJohannes Sixt <j6t@kdbg.org>
Sun, 10 Oct 2021 17:03:03 +0000 (17:03 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 10 Oct 2021 22:24:21 +0000 (15:24 -0700)
commit637b80cd6a2a73eb6723aec2f52aed1135d99de4
tree523f84e2e59077c69d6eec3fd516df830459feb4
parentbfaaf191a5470cb81ce327bc3b9ef9e277c9767b
userdiff-cpp: permit the digit-separating single-quote in numbers

Since C++17, the single-quote can be used as digit separator:

   3.141'592'654
   1'000'000
   0xdead'beaf

Make it known to the word regex of the cpp driver, so that numbers are
not split into separate tokens at the single-quotes.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4034/cpp/expect
userdiff.c