in Sources/Markdown/Base/DirectiveArgument.swift [161:176]
func parseCharacter(_ character: Character,
from line: inout TrimmedLine,
required: Bool,
allowEscape: Bool,
diagnoseIfNotFound: Bool,
parseErrors: inout [ParseError]) -> Bool {
guard line.lex(character, allowEscape: allowEscape) != nil || !required else {
if diagnoseIfNotFound,
let expectedLocation = line.location {
parseErrors.append(.missingExpectedCharacter(character, location: expectedLocation))
}
return false
}
return true
}