Examples of LayeredLexer


Examples of com.intellij.lexer.LayeredLexer

    }

    @NotNull
    protected Lexer createLexer() {
        FlexLexer flexLexer = new Iso92SQLHighlighterFlexLexer(getTokenTypes());
        return new LayeredLexer(new FlexAdapter(flexLexer));
    }
View Full Code Here

Examples of com.intellij.lexer.LayeredLexer

    }

    @NotNull
    protected Lexer createLexer() {
        FlexLexer flexLexer = new PostgresPSQLHighlighterFlexLexer(getTokenTypes());
        return new LayeredLexer(new FlexAdapter(flexLexer));
    }
View Full Code Here

Examples of com.intellij.lexer.LayeredLexer

    }

    @NotNull
    protected Lexer createLexer() {
        FlexLexer flexLexer = new OracleSQLHighlighterFlexLexer(getTokenTypes());
        return new LayeredLexer(new FlexAdapter(flexLexer));
    }
View Full Code Here

Examples of com.intellij.lexer.LayeredLexer

    }

    @NotNull
    protected Lexer createLexer() {
        FlexLexer flexLexer = new PostgresSQLHighlighterFlexLexer(getTokenTypes());
        return new LayeredLexer(new FlexAdapter(flexLexer));
    }
View Full Code Here

Examples of com.intellij.lexer.LayeredLexer

    }

    @NotNull
    protected Lexer createLexer() {
        FlexLexer flexLexer = new MysqlSQLHighlighterFlexLexer(getTokenTypes());
        return new LayeredLexer(new FlexAdapter(flexLexer));
    }
View Full Code Here

Examples of com.intellij.lexer.LayeredLexer

    }

    @NotNull
    protected Lexer createLexer() {
        FlexLexer flexLexer = new OraclePLSQLHighlighterFlexLexer(getTokenTypes());
        return new LayeredLexer(new FlexAdapter(flexLexer));
    }
View Full Code Here

Examples of com.intellij.lexer.LayeredLexer

      myProject = project;
    }

    @NotNull
    public Lexer getHighlightingLexer() {
      return new LayeredLexer(new CfmlLexer(true, myProject));
    }
View Full Code Here

Examples of com.intellij.lexer.LayeredLexer

    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;
    }
    return null;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.