- Added single-line comment support
This commit is contained in:
Tristan B. Velloza Kildaire 2024-04-17 17:16:52 +02:00
parent b3ea687d8c
commit 84526582f0
1 changed files with 7 additions and 2 deletions

View File

@ -97,8 +97,7 @@ private class CommentParser
{
CommentParts parts;
// string buildUp;
// Handle multi-line comments
if(this.source.startsWith("/**"))
{
string[] lines = split(this.source, "\n");
@ -160,6 +159,12 @@ private class CommentParser
}
parts.strs = docStrs;
}
// Handle single-line comments
else
{
// Set body parts
parts.bdy = strip(stripLeft(this.source, ("//")));
}
return parts;
}