git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] userdiff: support C# async methods and correct C# keywords
@ 2014-06-02  4:13 Sup Yut Sum
  2014-06-02  4:13 ` [PATCH 2/2] userdiff: support Java try keyword Sup Yut Sum
  2014-06-05 22:59 ` [PATCH 1/2] userdiff: support C# async methods and correct C# keywords Junio C Hamano
  0 siblings, 2 replies; 7+ messages in thread
From: Sup Yut Sum @ 2014-06-02  4:13 UTC (permalink / raw)
  To: git; +Cc: gitster, Sup Yut Sum

async is in C# 5.0
foreach is in C# 1.0
instanceof is in Java. The similar keywords are typeof, is, as in C# 1.0
default, try are in C# 1.0

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
---
 userdiff.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/userdiff.c b/userdiff.c
index fad52d6..96eda6c 100644
--- a/userdiff.c
+++ b/userdiff.c
@@ -134,9 +134,9 @@ PATTERNS("cpp",
 	 "|[-+*/<>%&^|=!]=|--|\\+\\+|<<=?|>>=?|&&|\\|\\||::|->\\*?|\\.\\*"),
 PATTERNS("csharp",
 	 /* Keywords */
-	 "!^[ \t]*(do|while|for|if|else|instanceof|new|return|switch|case|throw|catch|using)\n"
+	 "!^[ \t]*(do|while|for|foreach|if|else|typeof|is|as|new|return|switch|case|default|throw|try|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 */
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-06-07 16:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-02  4:13 [PATCH 1/2] userdiff: support C# async methods and correct C# keywords Sup Yut Sum
2014-06-02  4:13 ` [PATCH 2/2] userdiff: support Java try keyword Sup Yut Sum
2014-06-02 19:25   ` Junio C Hamano
2014-06-05 22:59 ` [PATCH 1/2] userdiff: support C# async methods and correct C# keywords Junio C Hamano
2014-06-06 13:27   ` Steve Hoelzer
2014-06-06 17:34     ` Junio C Hamano
2014-06-07 16:00       ` Steve Hoelzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).