public boolean atTerminator() {
        if (!hasNext()) {
            return true;
        }

        final char ch = peek();

        return isSpace(ch) || isEndOfLine(ch) || ch == '.' || ch == ',' || ch == '|' || ch == ':' || ch == '(' || ch == ')' || rightDelimiter.charAt(0) == ch;
    }