Exemplo n.º 1
0
 private bool IsValidOpenMarker(CharacterContext context) =>
 WrapIsPotentialValid(context.Position, context.Text, context.PreviousCharacterIsEscaping) &&
 IsValidOpenMarker(context.Position, context.Text);
Exemplo n.º 2
0
 private bool IsValidCloseMarker(CharacterContext context, IReadOnlyCollection <Token> tokenCandidates) =>
 WrapIsPotentialValid(context.Position, context.Text, context.PreviousCharacterIsEscaping) &&
 IsValidCloseMarker(context.Position, context.Text, tokenCandidates);
Exemplo n.º 3
0
 private bool IsMarker(CharacterContext characterContext, IReadOnlyCollection <Token> tokenCandidates) =>
 IsValidCloseMarker(characterContext, tokenCandidates) || IsValidOpenMarker(characterContext);