Package com.intellij.lexer

Examples of com.intellij.lexer.FlexAdapter


        super(parser);
    }

    @NotNull
    public Lexer createLexer(Project project) {
        return new FlexAdapter(new MysqlPSQLParserFlexLexer(getTokenTypes()));
    }
View Full Code Here


    }

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

        super(parser);
    }

    @NotNull
    public Lexer createLexer(Project project) {
        return new FlexAdapter(new OraclePLSQLParserFlexLexer(getTokenTypes()));
    }
View Full Code Here

    public static final TokenSet mergeme = TokenSet.create(JFlexElementTypes.JAVA_CODE);

    public JFlexMergingLexer() {

        super(new FlexAdapter(new _JFlexLexer((java.io.Reader) null)), mergeme);

    }
View Full Code Here

    private static final TokenSet TOKENS_TO_MERGE = TokenSet.create(
            LatteTokenTypes.WHITE_SPACE
    );

    public LatteSubLexer() {
        super(new FlexAdapter(new _LatteSubLexer((Reader) null)), TOKENS_TO_MERGE);
    }
View Full Code Here

            LatteTokenTypes.WHITE_SPACE,
            LatteTokenTypes.HTML_TEXT
    );

    public LatteTopLexer() {
       super(new LookAheadLexer(new FlexAdapter(new _LatteTopLexer((Reader) null))) {

            @Override
            protected void lookAhead(Lexer lex) {
                IElementType type = lex.getTokenType();
                if(type == LatteTokenTypes.N_ATTR) { // n: attr - keep all interesting tokens as they are
View Full Code Here

  private static final TextAttributesKey[] EMPTY_KEYS = new TextAttributesKey[0];

  @NotNull
  @Override
  public Lexer getHighlightingLexer() {
    return new FlexAdapter(new HXMLLexer((Reader)null));
  }
View Full Code Here

  public static final IFileElementType FILE = new IFileElementType(Language.<HXMLLanguage>findInstance(HXMLLanguage.class));

  @NotNull
  @Override
  public Lexer createLexer(Project project) {
    return new FlexAdapter(new HXMLLexer((Reader) null));
  }
View Full Code Here

public class StoryParserDefinition implements ParserDefinition {

    @NotNull
    public Lexer createLexer(Project project) {
        return new FlexAdapter(new StoryLexerBasedOnJFlex());
    }
View Full Code Here

//        ));
    }

    @NotNull
    public Lexer getHighlightingLexer() {
        return new FlexAdapter(new StoryLexerBasedOnJFlex());
    }
View Full Code Here

TOP

Related Classes of com.intellij.lexer.FlexAdapter

Copyright © 2018 www.massapicom. 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.