Package com.dci.intellij.dbn.language.sql.dialect.postgres

Source Code of com.dci.intellij.dbn.language.sql.dialect.postgres.PostgresSQLSyntaxHighlighter

package com.dci.intellij.dbn.language.sql.dialect.postgres;

import com.dci.intellij.dbn.language.sql.SQLSyntaxHighlighter;
import com.dci.intellij.dbn.language.sql.dialect.SQLLanguageDialect;
import com.intellij.lexer.FlexAdapter;
import com.intellij.lexer.FlexLexer;
import com.intellij.lexer.LayeredLexer;
import com.intellij.lexer.Lexer;
import org.jetbrains.annotations.NotNull;

public class PostgresSQLSyntaxHighlighter extends SQLSyntaxHighlighter {
    public PostgresSQLSyntaxHighlighter(SQLLanguageDialect languageDialect) {
        super(languageDialect, "postgres_sql_highlighter_tokens.xml");
    }

    @NotNull
    protected Lexer createLexer() {
        FlexLexer flexLexer = new PostgresSQLHighlighterFlexLexer(getTokenTypes());
        return new LayeredLexer(new FlexAdapter(flexLexer));
    }
}
TOP

Related Classes of com.dci.intellij.dbn.language.sql.dialect.postgres.PostgresSQLSyntaxHighlighter

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.