本文整理匯總了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));
}