本文整理汇总了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;
}
示例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();
}
});
}
示例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;
}
示例4: createLexer
import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
@NotNull
@Override
public Lexer createLexer(Project project) {
return new FlexAdapter(new _AppleScriptLexer(null));
}
示例5: getHighlightingLexer
import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
@NotNull
@Override
public Lexer getHighlightingLexer() {
return new FlexAdapter(new _AppleScriptLexer(null));
}
示例6: createLexer
import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
@NotNull
@Override
public Lexer createLexer(Project project) {
return new FlexAdapter(new _GCMLexer());
}
示例7: getHighlightingLexer
import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
@NotNull
@Override
public Lexer getHighlightingLexer() {
return new FlexAdapter(new _GCMLexer());
}
示例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);
}
示例10: LuaDocLexer
import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
public LuaDocLexer() {
super(new FlexAdapter(new _LuaDocLexer()),
TOKENS_TO_MERGE);
}
示例11: LuaLexer
import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
public LuaLexer() {
super(new FlexAdapter(new _LuaLexer((Reader) null)),
TokenSet.create(LONGCOMMENT, LONGSTRING, STRING, SHORTCOMMENT));
}
示例12: createLexer
import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
@NotNull
@Override
public Lexer createLexer(Project project) {
return new FlexAdapter(new IonLexer((Reader) null));
}
示例13: getHighlightingLexer
import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
@NotNull
@Override
public Lexer getHighlightingLexer() {
return new FlexAdapter(new IonLexer((Reader) null));
}
示例14: getHighlightingLexer
import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
@NotNull
@Override
public Lexer getHighlightingLexer() {
return new YamlHighlightingLexer(new FlexAdapter(new YamlFlexLexer((Reader) null)));
}
示例15: JetLexer
import com.intellij.lexer.FlexAdapter; //导入依赖的package包/类
public JetLexer() {
super(new FlexAdapter(new _JetLexer()), TokenSet.create(JetTypes.COMMENT));
}