if (file instanceof CfmlFile) {
Project project = file.getProject();
SqlLanguageDialect dialect = SqlDialectMappings.getMapping(project, file.getVirtualFile());
Lexer sqlLexer = LanguageParserDefinitions.INSTANCE.forLanguage(dialect).createLexer(project);
LayeredLexer cfmlLayeredLexer = new LayeredLexer(new CfmlLexer(true, project));
cfmlLayeredLexer.registerLayer(new XmlHighlightingLexer(), CfmlElementTypes.TEMPLATE_TEXT);
cfmlLayeredLexer.registerLayer(sqlLexer, CfmlElementTypes.SQL);
return cfmlLayeredLexer;