userdiff: add built-in pattern for rust
authorMarc-André Lureau <mlureau@redhat.com>
Thu, 16 May 2019 23:58:15 +0000 (01:58 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 May 2019 03:54:02 +0000 (12:54 +0900)
This adds xfuncname and word_regex patterns for Rust, a quite
popular programming language. It also includes test cases for the
xfuncname regex (t4018) and updated documentation.

The word_regex pattern finds identifiers, integers, floats and
operators, according to the Rust Reference Book.

Cc: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found