// Loop through quoted strings
for (;;)
{
if (i >= len)
{
throw new ReferenceSyntaxException(
"Missing closing brace. Expression: '" + expressionString
+ "'");
}
int indexofClosingBrace = expressionString.indexOf('}', i);
i = StringUtils.minIndex(indexofClosingBrace, findQuote(
expressionString, i));
if (i < 0)
{
// No delimiter found
throw new ReferenceSyntaxException(
"Missing closing brace. Expression: '" + expressionString
+ "'");
}
// 1. If quoted literal, find closing quote
if (i != indexofClosingBrace)
{
i = indexOfMatchingClosingQuote(expressionString, i) + 1;
if (i == 0)
{
// Note: if no match, i==0 because -1 + 1 = 0
throw new ReferenceSyntaxException(
"Missing closing quote. Expression: '"
+ expressionString + "'");
}
}
else