private void skipListing()

in freemarker-docgen-core/src/main/java/org/freemarker/docgen/core/CJSONInterpreter.java [1269:1304]


    private void skipListing(char terminator) throws EvaluationException {
        int listP = p - 1;
        skipWS();
        if (terminator == 0x20) {
            listP = p;
        }
        
        while (true) {
            char c;
            if (p < ln) {
                c = tx.charAt(p);
                if (c == terminator) {
                    return;
                }
            } else {
                if (terminator == 0x20) {
                    return;
                } else {
                    throw newSyntaxError("Reached the end of the text, "
                            + "but the closing "
                            + TextUtil.jQuoteOrName(terminator)
                            + " is missing.",
                            listP);
                }
            }
            if (c == ',' || c == ':' || c == ';' || c == '=') {
                p++;
            } else {
                skipExpression();
            }
            c = skipWS();
            if (c == terminator) {
                return;
            }
        }
    }