summaryrefslogtreecommitdiff
path: root/userdiff.c
diff options
context:
space:
mode:
authorThomas Levesque <thomas.levesque@gmail.com>2018-03-08 11:05:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-08 19:03:32 (GMT)
commita12cec99f8b64a0b99ae6f8a7e4724039406aea3 (patch)
treefb8c19b5c233112d1302545de109ab5a56ec9801 /userdiff.c
parent38e79b1fdab9244e1727d0698afcf3bb8956c0a4 (diff)
downloadgit-a12cec99f8b64a0b99ae6f8a7e4724039406aea3.zip
git-a12cec99f8b64a0b99ae6f8a7e4724039406aea3.tar.gz
git-a12cec99f8b64a0b99ae6f8a7e4724039406aea3.tar.bz2
userdiff.c: add C# async keyword in diff pattern
Currently C# async methods are not shown in diff hunk headers. I just added the async keyword to the csharp method pattern so that they are properly detected. Signed-off-by: Thomas Levesque <thomas.levesque@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'userdiff.c')
-rw-r--r--userdiff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/userdiff.c b/userdiff.c
index dbfb4e1..b92caf4 100644
--- a/userdiff.c
+++ b/userdiff.c
@@ -138,7 +138,7 @@ PATTERNS("csharp",
/* Keywords */
"!^[ \t]*(do|while|for|if|else|instanceof|new|return|switch|case|throw|catch|using)\n"
/* Methods and constructors */
- "^[ \t]*(((static|public|internal|private|protected|new|virtual|sealed|override|unsafe)[ \t]+)*[][<>@.~_[:alnum:]]+[ \t]+[<>@._[:alnum:]]+[ \t]*\\(.*\\))[ \t]*$\n"
+ "^[ \t]*(((static|public|internal|private|protected|new|virtual|sealed|override|unsafe|async)[ \t]+)*[][<>@.~_[:alnum:]]+[ \t]+[<>@._[:alnum:]]+[ \t]*\\(.*\\))[ \t]*$\n"
/* Properties */
"^[ \t]*(((static|public|internal|private|protected|new|virtual|sealed|override|unsafe)[ \t]+)*[][<>@.~_[:alnum:]]+[ \t]+[@._[:alnum:]]+)[ \t]*$\n"
/* Type definitions */