From f93142bda95258140574be2e2dd16cb0d3e4b5a0 Mon Sep 17 00:00:00 2001 From: Federico O'Reilly Regueiro Date: Thu, 10 Aug 2023 01:55:12 -0400 Subject: [PATCH] Make parenthesis optional in attribute parsing when 0 parameters --- Sharpmake/SourceAttributeParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sharpmake/SourceAttributeParser.cs b/Sharpmake/SourceAttributeParser.cs index 0d1050538..1e5672586 100644 --- a/Sharpmake/SourceAttributeParser.cs +++ b/Sharpmake/SourceAttributeParser.cs @@ -53,7 +53,7 @@ public static Regex CreateAttributeRegex(string attributeTarget, string attribut regex += $@"{Regex.Escape(attributeName)}{dp}"; if (parameterCount == 0) { - regex += $@"(?:\({dp}\))"; + regex += $@"(?:\({dp}\))?"; } else {