Skip to content

Commit 3443f12

Browse files
committed
Added rule for region block preprocessor directives removal.
1 parent 6d36f07 commit 3443f12

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Platform.RegularExpressions.Transformer.CSharpToCpp/CSharpToCppTransformer.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ public class CSharpToCppTransformer : Transformer
298298
// default
299299
// 0
300300
(new Regex(@"(\W)default(\W)"), "${1}0$2", null, 0),
301+
// #region Always
302+
//
303+
(new Regex(@"(^|\r?\n)[ \t]*\#(region|endregion)[^\r\n]*(\r?\n|$)"), "", null, 0),
301304
// //#define ENABLE_TREE_AUTO_DEBUG_AND_VALIDATION
302305
//
303306
(new Regex(@"\/\/[ \t]*\#define[ \t]+[_a-zA-Z0-9]+[ \t]*"), "", null, 0),

0 commit comments

Comments
 (0)