public Tokenizer getTokenizer(PsiElement element) {
if (element instanceof CfmlStringLiteralExpression) {
return new Tokenizer() {
@Override
public void tokenize(@NotNull final PsiElement element, TokenConsumer consumer) {
consumer.consumeToken(element, new TextSplitter() {
@Override
public void split(@Nullable String text, @NotNull TextRange range, Consumer<TextRange> consumer) {
int elementOffset = element.getTextRange().getStartOffset();
for (PsiElement e = element.getFirstChild(); e != null; e = e.getNextSibling()) {
ASTNode astNode = e.getNode();