2025-03-29 19:31:10 +03:00
|
|
|
namespace mROA.Codegen.Tools.Reading
|
2025-03-25 21:27:54 +03:00
|
|
|
{
|
|
|
|
|
public class LinkSectionReader : LeadingTextSectionReader
|
|
|
|
|
{
|
|
|
|
|
public LinkSectionReader() : base("<!L")
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override ITemplateSection ExtractSection(ref int index, TemplateDocument document)
|
|
|
|
|
{
|
|
|
|
|
var from = index;
|
|
|
|
|
index = PassCaretToCloseSymbol();
|
2025-03-29 19:31:10 +03:00
|
|
|
var to = index - 1;
|
2025-03-25 21:27:54 +03:00
|
|
|
|
|
|
|
|
var tagText = GetTagValue(from, to);
|
|
|
|
|
return new LinkTemplateSection(tagText, document);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|