当前位置: 首页>>代码示例>>Java>>正文


Java FlexAdapter类代码示例

本文整理汇总了Java中com.intellij.lexer.FlexAdapter的典型用法代码示例。如果您正苦于以下问题:Java FlexAdapter类的具体用法?Java FlexAdapter怎么用?Java FlexAdapter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


FlexAdapter类属于com.intellij.lexer包,在下文中一共展示了FlexAdapter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: XPathLexer

import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
private XPathLexer(boolean xpath2Syntax) {
  super(new FlexAdapter(new _XPathLexer(xpath2Syntax) {
    @Override
    protected void readComment() throws IOException {
      final int state = yystate();
      final int start = getTokenStart();
      while (true) {
        final IElementType type = advance();
        if (type == null || type == XPath2TokenTypes.END_COMMENT) {
          break;
        }
      }
      setStart(start);
      yybegin(state);
    }
  }));

  myXPath2Syntax = xpath2Syntax;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:20,代码来源:XPathLexer.java

示例2: createLexer

import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
private static FlexAdapter createLexer() {
    return new FlexAdapter(new _SquirrelLexer() {
        public void reset(final CharSequence buffer, final int start, final int end, final int initialState) {
            super.reset(buffer, start, end, initialState);
            myLeftParenCount = 0;
            myStateStack.clear();
        }
    });
}
 
开发者ID:shvetsgroup,项目名称:squirrel-lang-idea-plugin,代码行数:10,代码来源:SquirrelLexer.java

示例3: parse

import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
@NotNull
@Override
public ASTNode parse(IElementType root_, PsiBuilder builder_) {
    maxRbraceDebt = -1;
    lastCountedTok = -1;
    regressed = false;
    debtPoints.clear();
    builder_.setTokenTypeRemapper(myRemapper);
    lexer =  (_HaskellParsingLexer) ((FlexAdapter) ((PsiBuilderImpl) builder_).getLexer()).getFlex();
    ASTNode node = super.parse(root_, builder_);
    return node;
}
 
开发者ID:carymrobbins,项目名称:intellij-haskforce,代码行数:13,代码来源:HaskellParserWrapper.java

示例4: createLexer

import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
@NotNull
@Override
public Lexer createLexer(Project project) {
  return new FlexAdapter(new _AppleScriptLexer(null));
}
 
开发者ID:ant-druha,项目名称:AppleScript-IDEA,代码行数:6,代码来源:AppleScriptParserDefinition.java

示例5: getHighlightingLexer

import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
@NotNull
@Override
public Lexer getHighlightingLexer() {
  return new FlexAdapter(new _AppleScriptLexer(null));
}
 
开发者ID:ant-druha,项目名称:AppleScript-IDEA,代码行数:6,代码来源:AppleScriptSyntaxHighlighter.java

示例6: createLexer

import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
@NotNull
@Override
public Lexer createLexer(Project project) {
    return new FlexAdapter(new _GCMLexer());
}
 
开发者ID:datathings,项目名称:greycat-idea-plugin,代码行数:6,代码来源:GCMParserDefinition.java

示例7: getHighlightingLexer

import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
@NotNull
@Override
public Lexer getHighlightingLexer() {
    return new FlexAdapter(new _GCMLexer());
}
 
开发者ID:datathings,项目名称:greycat-idea-plugin,代码行数:6,代码来源:GCMSyntaxHighlighter.java

示例8: createLexer

import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
@NotNull
@Override
public Lexer createLexer(final Project project) {
    return new FlexAdapter(new ImpexLexer((Reader) null));
}
 
开发者ID:AlexanderBartash,项目名称:hybris-integration-intellij-idea-plugin,代码行数:6,代码来源:ImpexParserDefinition.java

示例9: createLexer

import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
@NotNull
@Override
public Lexer createLexer(Project project) {
    NixLexer lxr = new NixLexer((Reader) null);
    return new FlexAdapter(lxr);
}
 
开发者ID:NixOS,项目名称:nix-idea,代码行数:7,代码来源:NixParserDefinition.java

示例10: LuaDocLexer

import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
public LuaDocLexer() {
  super(new FlexAdapter(new _LuaDocLexer()),
      TOKENS_TO_MERGE);
}
 
开发者ID:internetisalie,项目名称:lua-for-idea,代码行数:5,代码来源:LuaDocLexer.java

示例11: LuaLexer

import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
public LuaLexer() {

        super(new FlexAdapter(new _LuaLexer((Reader) null)),
                TokenSet.create(LONGCOMMENT, LONGSTRING, STRING, SHORTCOMMENT));
    }
 
开发者ID:internetisalie,项目名称:lua-for-idea,代码行数:6,代码来源:LuaLexer.java

示例12: createLexer

import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
@NotNull
@Override
public Lexer createLexer(Project project) {
    return new FlexAdapter(new IonLexer((Reader) null));
}
 
开发者ID:amzn,项目名称:ion-intellij-plugin,代码行数:6,代码来源:IonParserDefinition.java

示例13: getHighlightingLexer

import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
@NotNull
@Override
public Lexer getHighlightingLexer() {
    return new FlexAdapter(new IonLexer((Reader) null));
}
 
开发者ID:amzn,项目名称:ion-intellij-plugin,代码行数:6,代码来源:IonSyntaxHighlighter.java

示例14: getHighlightingLexer

import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
@NotNull
@Override
public Lexer getHighlightingLexer() {
       return new YamlHighlightingLexer(new FlexAdapter(new YamlFlexLexer((Reader) null)));
   }
 
开发者ID:vermut,项目名称:intellij-snakeyaml,代码行数:6,代码来源:YamlSyntaxHighlighter.java

示例15: JetLexer

import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
public JetLexer() {
    super(new FlexAdapter(new _JetLexer()), TokenSet.create(JetTypes.COMMENT));
}
 
开发者ID:jhsx,项目名称:GoJetPlugin,代码行数:4,代码来源:JetLexer.java


注:本文中的com.intellij.lexer.FlexAdapter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。