Files
mROA/mROA.Codegen/Tools/Reading/LinkSectionReader.cs
2025-06-28 22:38:09 +03:00

20 lines
523 B
C#

namespace mROA.CodegenTools.Reading
{
public class LinkSectionReader : LeadingTextSectionReader
{
public LinkSectionReader() : base("<!L")
{
}
public override ITemplateSection ExtractSection(ref int index, TemplateDocument document)
{
var from = index;
index = PassCaretToCloseSymbol();
var to = index - 1;
var tagText = GetTagValue(from, to);
return new LinkTemplateSection(tagText, document);
}
}
}