@@ -51,8 +51,15 @@ static class AsyncToSyncConverter
51
51
//new KVP("Task.Delay", "/*--Task.Delay--*/System.Threading.Thread.Sleep"), //this needs special regex in sync to async direction
52
52
new KVP ( @"Task.FromResult" , @"/*--Task.FromResult--*/" ) ,
53
53
new KVP ( @"Task.WhenAll" , @"/*--Task.WhenAll--*/" ) ,
54
- new KVP ( @" AsyncLock " , @" /*--AsyncLock--*/object " ) , //TODO!!! add handling for \t \r \n
55
- new KVP ( @" AsyncLock(" , @" /*--AsyncLock--*/object(" ) ,
54
+
55
+ //TODO: use Regex instead since the match beginning may also vary from space
56
+ new KVP ( " AsyncLock " , " /*--AsyncLock--*/object " ) , //TODO!!! add handling for \t \r \n
57
+ new KVP ( " AsyncLock(" , " /*--AsyncLock--*/object(" ) ,
58
+ new KVP ( " AsyncLock>" , " /*--AsyncLock--*/object>" ) ,
59
+ new KVP ( " AsyncLock," , " /*--AsyncLock--*/object," ) ,
60
+ new KVP ( " AsyncLock\t " , " /*--AsyncLock--*/object\t " ) ,
61
+ new KVP ( " AsyncLock\r " , " /*--AsyncLock--*/object\r " ) ,
62
+ new KVP ( " AsyncLock\n " , " /*--AsyncLock--*/object\n " ) ,
56
63
57
64
new KVP ( @"#define ASYNC" , @"#define NOASYNC" ) ,
58
65
} ;
0 commit comments