Skip to content

Commit

Permalink
Merge branch 'optional-parenthesis-no-param-attributes' into 'main'
Browse files Browse the repository at this point in the history
Make parenthesis optional in attribute parsing when 0 parameters

See merge request Sharpmake/sharpmake!432
  • Loading branch information
jspelletier committed Aug 11, 2023
2 parents 3692b71 + f93142b commit c721ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sharpmake/SourceAttributeParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit c721ebe

Please sign in to comment.