private Token expectingSQHandler(char c, int col, int line) throws IOException {
if (c == '\'') {
state = State.TAG;
AttributeValueToken tok = new AttributeValueToken(line, col, "", getLineNo(), getColumn());
tok.setQuotes(AttributeValueToken.SINGLE_QUOTES);
return tok;
}
StringBuilder builder = new StringBuilder();
builder.append(c);
while (true) {
c = nextChar();
if (c == Tokenizer.EOL || c == '\'') break;
if (c == '\\' && peek(1) == '\'') {
nextChar();
builder.append("'");
} else {
builder.append(c);
}
}
state = State.TAG;
AttributeValueToken tok = new AttributeValueToken(line, col, builder.toString(), getLineNo(), getColumn());
tok.setQuotes(AttributeValueToken.SINGLE_QUOTES);
return tok;
}