20 lines
523 B
C#
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);
|
|
}
|
|
}
|
|
} |