1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 14:24:10 +02:00

For for param documentation when default argument is specified

This commit is contained in:
Brian Fiete 2021-11-14 18:43:17 -08:00
parent 5a3c0eaf39
commit 7dbd5294d7

View file

@ -999,10 +999,18 @@ namespace IDE.ui
} }
if (sectionIdx == cursorSection) if (sectionIdx == cursorSection)
{ {
int lastSpace = sectionStr.LastIndexOf(' '); paramName = sectionStr;
int eqPos = paramName.IndexOf('=');
if (eqPos != -1)
{
paramName.RemoveToEnd(eqPos);
paramName.Trim();
}
int lastSpace = paramName.LastIndexOf(' ');
if (lastSpace != -1) if (lastSpace != -1)
{ {
paramName = .(sectionStr, lastSpace + 1); paramName = .(paramName, lastSpace + 1);
if (paramName.EndsWith(',')) if (paramName.EndsWith(','))
paramName.RemoveFromEnd(1); paramName.RemoveFromEnd(1);
} }