Skip to content

Commit 697054b

Browse files
authored
Substitution fix.
1 parent ab014c3 commit 697054b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/cs2cpp/CSharpToCpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def __init__(self, codeString="", extra=[], useRegex=False):
148148
(r"(struct|class) ([a-zA-Z0-9]+)(\s+){([\sa-zA-Z0-9;:_]+?)}([^;])", r"\1 \2\3{\4};\5", None, 0),
149149
# class Program { }
150150
# class Program { };
151-
(r"(struct|class) ([a-zA-Z0-9]+[^\r\n]*)([\r\n]+(?<indentLevel>[\t ]*)?)\{([\S\s]+?[\r\n]+\k<indentLevel>)\}([^;]|$)", r"\1 \2\3{\4};\5", None, 0),
151+
(r"(struct|class) ([a-zA-Z0-9]+[^\r\n]*)([\r\n]+(?<indentLevel>[\t ]*)?)\{([\S\s]+?[\r\n]+\k<indentLevel>)\}([^;]|$)", r"\1 \2\3{\4\5};\6", None, 0),
152152
# class SizedBinaryTreeMethodsBase : GenericCollectionMethodsBase
153153
# class SizedBinaryTreeMethodsBase : public GenericCollectionMethodsBase
154154
(r"class ([a-zA-Z0-9]+) : ([a-zA-Z0-9]+)", r"class \1 : public \2", None, 0),

0 commit comments

Comments
 (0)