if (lookAhead(sql, ndx) == '$') {
final String ident = sql.substring(start, ndx + 2);
final int pos = sql.indexOf(ident, ndx + 2);
if (pos != -1) {
String quotedText = sql.substring(ndx + 2, pos);
parent.add(new StringLiteralPiece(quotedText, ident, start));
return pos + ident.length();
}
else {
++ndx;
break;