mutating func parseArgumentsText()

in Sources/Markdown/Parser/BlockDirectiveParser.swift [115:131]


    mutating func parseArgumentsText(from line: TrimmedLine) -> Bool {
        precondition(parseState == .argumentsText)
        var accepted = false
        var line = line
        if let argumentsText = line.lex(until: { $0 == ")" ? .stop : .continue },
                                        allowEscape: true, allowQuote: true) {
            self.argumentsText.append(argumentsText)
            accepted = true
        }

        if line.text.starts(with: ")") {
            parseState = .argumentsEnd
            parseArgumentsEnd(from: line)
        }

        return accepted
    }