Examples of FlexAdapter


Examples of com.intellij.lexer.FlexAdapter

    private final TextAttributesKey[] BAD_CHARACTER_KEYS = new TextAttributesKey[]{HighlighterColors.BAD_CHARACTER};
    private final Map<IElementType, TextAttributesKey> colors = new HashMap<IElementType, TextAttributesKey>();

    public NginxSyntaxHighlighter() {

        lexer = new FlexAdapter(new _NginxLexer((java.io.Reader) null));

        colors.put(NginxElementTypes.BAD_CHARACTER, HighlighterColors.BAD_CHARACTER);
        colors.put(NginxElementTypes.COMMENT, SyntaxHighlighterColors.JAVA_BLOCK_COMMENT);

        colors.put(NginxElementTypes.CONTEXT_NAME, SyntaxHighlighterColors.KEYWORD);
View Full Code Here

Examples of com.intellij.lexer.FlexAdapter

* Time: 17:16:42
*/
public class NginxHighlightingLexer extends MergingLexerAdapter {

    public NginxHighlightingLexer() {
        super(new FlexAdapter(new _NginxLexer((java.io.Reader) null)), NginxElementTypes.WHITE_SPACES);
    }
View Full Code Here

Examples of com.intellij.lexer.FlexAdapter

  public DartLexer() {
    super(createLexer());
  }

  private static FlexAdapter createLexer() {
    return new FlexAdapter(new _DartLexer() {
      public void reset(final CharSequence buffer, final int start, final int end, final int initialState) {
        super.reset(buffer, start, end, initialState);
        myLeftBraceCount = 0;
        myStateStack.clear();
      }
View Full Code Here

Examples of com.intellij.lexer.FlexAdapter

import static com.jetbrains.lang.dart.DartTokenTypesSets.MULTI_LINE_COMMENT_BODY;

public class DartDocLexer extends MergingLexerAdapter {

  public DartDocLexer() {
    super(new FlexAdapter(new _DartDocLexer()), TokenSet.create(MULTI_LINE_COMMENT_BODY));
  }
View Full Code Here

Examples of com.intellij.lexer.FlexAdapter

/**
* @author Dennis.Ushakov
*/
public class AngularJSLexer extends MergingLexerAdapter {
  public AngularJSLexer() {
    super(new FlexAdapter(new _AngularJSLexer((Reader)null)), TokenSet.create(JSTokenTypes.STRING_LITERAL));
  }
View Full Code Here

Examples of com.intellij.lexer.FlexAdapter

    TokenSet.create(CfmlTokenTypes.COMMENT,
                    CfmlTokenTypes.WHITE_SPACE,
                    CfmlTokenTypes.SCRIPT_EXPRESSION, CfmlElementTypes.TEMPLATE_TEXT);

  public CfmlLexer(boolean highlightingMode, Project project) {
    super(new FlexAdapter(new _CfmlLexer(project)), TOKENS_TO_MERGE);
    myProject = project;
  }
View Full Code Here

Examples of com.intellij.lexer.FlexAdapter

* Date: 20.11.2008
*/
public class CfscriptLexer extends MergingLexerAdapter {

  public CfscriptLexer(Project project) {
    super(new FlexAdapter(getFlexLexer(project)), TokenSet.EMPTY);
  }
View Full Code Here

Examples of com.intellij.lexer.FlexAdapter

  public static final IFileElementType FILE = new IFileElementType(Language.findInstance(LombokConfigLanguage.class));

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

Examples of com.intellij.lexer.FlexAdapter

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

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

Examples of com.intellij.lexer.FlexAdapter

    private final TextAttributesKey[] BAD_CHARACTER_KEYS = new TextAttributesKey[]{HighlighterColors.BAD_CHARACTER};
    private final Map<IElementType, TextAttributesKey> colors = new HashMap<IElementType, TextAttributesKey>();

    public NginxSyntaxHighlighter() {

        lexer = new FlexAdapter(new _NginxLexer((java.io.Reader) null));

        colors.put(NginxElementTypes.BAD_CHARACTER, HighlighterColors.BAD_CHARACTER);
        colors.put(NginxElementTypes.COMMENT, DefaultLanguageHighlighterColors.BLOCK_COMMENT);

        colors.put(NginxElementTypes.CONTEXT_NAME, DefaultLanguageHighlighterColors.KEYWORD);
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.