Reinclude tools

This commit is contained in:
micialware committed 2025-06-28 22:38:09 +03:00
1 parent 999ee66f9c
commit 0958ba20ee
17 files changed
+563 -2

No files matched your search

@@ -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());
}
}
}