Fix parsing doc comments in scripting api with inlined summary tag

This commit is contained in:
Wojtek Figat
2021-06-16 12:05:56 +02:00
parent 2068a58414
commit 1e08ed177b

View File

@@ -76,6 +76,10 @@ namespace Flax.Build.Bindings
if (commentLine.StartsWith("// "))
commentLine = "/// " + commentLine.Substring(3);
// Fix inlined summary
if (commentLine.StartsWith("/// <summary>") && commentLine.EndsWith("</summary>"))
commentLine = "/// " + commentLine.Substring(13, commentLine.Length - 23);
context.StringCache.Insert(0, commentLine);
break;
}