Skip to content

Commit 65223be

Browse files
committed
Do not match the "return" word in the interface method definition.
1 parent 7d28152 commit 65223be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Platform.RegularExpressions.Transformer.CSharpToCpp/CSharpToCppTransformer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class CSharpToCppTransformer : Transformer
6464
(new Regex(@"protected abstract ([^;]+);"), "virtual $1 = 0;", null, 0),
6565
// TElement GetFirst();
6666
// virtual TElement GetFirst() = 0;
67-
(new Regex(@"([\r\n]+[ ]+)([a-zA-Z0-9]+ [a-zA-Z0-9]+\([^\)]*\))(;[ ]*[\r\n]+)"), "$1virtual $2 = 0$3", null, 0),
67+
(new Regex(@"([\r\n]+[ ]+)((?!return)[a-zA-Z0-9]+ [a-zA-Z0-9]+\([^\)]*\))(;[ ]*[\r\n]+)"), "$1virtual $2 = 0$3", null, 0),
6868
// public virtual
6969
// virtual
7070
(new Regex(@"public virtual"), "virtual", null, 0),

0 commit comments

Comments
 (0)