refactor: set OpeningChars for parser
This commit is contained in:
parent
2e17daea52
commit
26b022f7ba
@ -12,6 +12,14 @@ public sealed class TemplateInlineParser : InlineParser
|
|||||||
private static readonly IReadOnlyDictionary<string, string> EmptyParams =
|
private static readonly IReadOnlyDictionary<string, string> EmptyParams =
|
||||||
new Dictionary<string, string>().AsReadOnly();
|
new Dictionary<string, string>().AsReadOnly();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="TemplateInlineParser" /> class.
|
||||||
|
/// </summary>
|
||||||
|
public TemplateInlineParser()
|
||||||
|
{
|
||||||
|
OpeningCharacters = new[] { '{' };
|
||||||
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public override bool Match(InlineProcessor processor, ref StringSlice slice)
|
public override bool Match(InlineProcessor processor, ref StringSlice slice)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user