refactor: set OpeningChars for parser

This commit is contained in:
Oliver Booth 2023-08-09 21:09:50 +01:00
parent 2e17daea52
commit 26b022f7ba
Signed by: oliverbooth
GPG Key ID: 725DB725A0D9EE61

View File

@ -12,6 +12,14 @@ public sealed class TemplateInlineParser : InlineParser
private static readonly IReadOnlyDictionary<string, string> EmptyParams =
new Dictionary<string, string>().AsReadOnly();
/// <summary>
/// Initializes a new instance of the <see cref="TemplateInlineParser" /> class.
/// </summary>
public TemplateInlineParser()
{
OpeningCharacters = new[] { '{' };
}
/// <inheritdoc />
public override bool Match(InlineProcessor processor, ref StringSlice slice)
{