Pattern p = Pattern.compile("@\\{((\\w)+((\\.)|(\\['?\"?)|('?\"?\\]\\.?)|(\\('?\"?\\)?)|(\\s*,\\s*)|('?\"?\\)\\.?))?)+\\}");
Matcher matcher = p.matcher(sc.getSource());
while(matcher.find()) {
chunks.add(new TextChunk(matcher.group()));
}
return chunks;
}