Small change of message type assigning
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace mROA.CodegenTools
|
||||
{
|
||||
public class DefineSectionReader : LeadingTextSectionReader
|
||||
{
|
||||
public DefineSectionReader() : base("<!D")
|
||||
{
|
||||
}
|
||||
|
||||
public override ITemplateSection ExtractSection(ref int index, TemplateDocument document)
|
||||
{
|
||||
var tagEnd = TemplateText.IndexOf(">", index, StringComparison.Ordinal);
|
||||
var sectionName = GetTagValue(index, tagEnd);
|
||||
tagEnd += 1;
|
||||
var endIndex = TemplateText.IndexOf("<!D>", tagEnd, StringComparison.Ordinal);
|
||||
var storedText = TemplateText.Substring(tagEnd, endIndex - tagEnd);
|
||||
index = endIndex + 4;
|
||||
PassCaretToCloseSymbol();
|
||||
PassCaretToCloseSymbol();
|
||||
return new DefineTemplateSection(storedText, sectionName, document);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user