From 21f9e9eb0f9ffbea13e21d6f880f9f9315e8151e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=BE=D0=BD=D1=81=D1=82=D0=B0=D0=BD=D1=82=D0=B8?= =?UTF-8?q?=D0=BD=20=D0=94=D1=8C=D1=8F=D1=87=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Sun, 16 Feb 2020 12:05:29 +0300 Subject: [PATCH] Version 0.1.24. Rule fix. --- .../CSharpToCppTransformer.cs | 2 +- ...Platform.RegularExpressions.Transformer.CSharpToCpp.csproj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/csharp/Platform.RegularExpressions.Transformer.CSharpToCpp/CSharpToCppTransformer.cs b/csharp/Platform.RegularExpressions.Transformer.CSharpToCpp/CSharpToCppTransformer.cs index a08b5aa..a25912c 100644 --- a/csharp/Platform.RegularExpressions.Transformer.CSharpToCpp/CSharpToCppTransformer.cs +++ b/csharp/Platform.RegularExpressions.Transformer.CSharpToCpp/CSharpToCppTransformer.cs @@ -143,7 +143,7 @@ public class CSharpToCppTransformer : Transformer (new Regex(@"override ([a-zA-Z0-9 \*\+]+)(\([^\)\r\n]+?\))"), "$1$2 override", null, 0), // return (range.Minimum, range.Maximum) // return {range.Minimum, range.Maximum} - (new Regex(@"(?return\s*)\((?[^\)\n]+)\)(?!\()(?\W)"), "${before}{${values}}", null, 0), + (new Regex(@"(?return\s*)\((?[^\)\n]+)\)(?!\()(?\W)"), "${before}{${values}}${after}", null, 0), // string // const char* (new Regex(@"(\W)string(\W)"), "$1const char*$2", null, 0), diff --git a/csharp/Platform.RegularExpressions.Transformer.CSharpToCpp/Platform.RegularExpressions.Transformer.CSharpToCpp.csproj b/csharp/Platform.RegularExpressions.Transformer.CSharpToCpp/Platform.RegularExpressions.Transformer.CSharpToCpp.csproj index 54a50c6..77ebab6 100644 --- a/csharp/Platform.RegularExpressions.Transformer.CSharpToCpp/Platform.RegularExpressions.Transformer.CSharpToCpp.csproj +++ b/csharp/Platform.RegularExpressions.Transformer.CSharpToCpp/Platform.RegularExpressions.Transformer.CSharpToCpp.csproj @@ -4,7 +4,7 @@ LinksPlatform's Platform.RegularExpressions.Transformer.CSharpToCpp Class Library Konstantin Diachenko Platform.RegularExpressions.Transformer.CSharpToCpp - 0.1.23 + 0.1.24 Konstantin Diachenko net471;netstandard2.0;netstandard2.1 Platform.RegularExpressions.Transformer.CSharpToCpp @@ -24,7 +24,7 @@ true snupkg latest - Rule fix: do not translate the type conversion into tuple. + Rule fix.