Reinclude tools

This commit is contained in:
2025-06-28 22:38:09 +03:00
parent 999ee66f9c
commit 0958ba20ee
17 changed files with 563 additions and 2 deletions
@@ -0,0 +1,24 @@
using System.Linq;
namespace mROA.CodegenTools.Reading
{
public class InsertSectionReader : LeadingTextSectionReader
{
public InsertSectionReader() : base("<!I")
{
}
public override ITemplateSection ExtractSection(ref int index, TemplateDocument document)
{
var from = index;
index = PassCaretToCloseSymbol();
var to = index - 1;
var tagText = GetTagValue(from, to);
var parts = tagText.Split(' ');
return new InsertTemplateSection(parts[0], document, parts.Skip(1).ToArray());
}
}
}