Skip to content

Commit

Permalink
Make parenthesis optional in attribute parsing when 0 parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
friketrike committed Aug 10, 2023
1 parent 3692b71 commit f93142b
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 f93142b

Please sign in to comment.