@Nullable @Override public WordsScanner getWordsScanner() { /** * Creates a new instance of the words scanner. * * @param lexer the lexer used for breaking the text into tokens. * @param identifierTokenSet the set of token types which represent identifiers. * @param commentTokenSet the set of token types which represent comments. * @param literalTokenSet the set of token types which represent literals. * @param skipCodeContextTokenSet the set of token types which should not be considered as code context. */ DefaultWordsScanner wordsScanner = new DefaultWordsScanner(new MultiMarkdownLexer(), TokenSet.create(WIKI_LINK_REF, WIKI_LINK_TEXT), TokenSet.create(COMMENT), TokenSet.EMPTY, TokenSet.EMPTY) { @Override public int getVersion() { return super.getVersion() + 7; } }; return wordsScanner; }
@Nullable @Override public WordsScanner getWordsScanner() { return new DefaultWordsScanner(new FrogLexer(), TokenSet.create(FrogTypes.FROG_WORD), FrogParserDefinition.COMMENT_TOKENS, TokenSet.create( FrogTypes.FROG_NULL, FrogTypes.FROG_SIMPLE_STRING, FrogTypes.FROG_MULTILINE_STRING, FrogTypes.FROG_INTEGER, FrogTypes.FROG_LONG, FrogTypes.FROG_FLOAT, FrogTypes.FROG_DOUBLE, FrogTypes.FROG_TRUE, FrogTypes.FROG_FALSE, FrogTypes.FROG_BYTE_ARRAY )); }
@Nullable @Override public WordsScanner getWordsScanner() { return new DefaultWordsScanner( new TSLexerAdapter(), TokenSet.create(TSTypes.ID), TokenSet.create(TSTypes.COMMENT), TokenSet.EMPTY ); }
@Nullable @Override public WordsScanner getWordsScanner() { return new DefaultWordsScanner(new AppleScriptLexerAdapter(), TokenSet.create(AppleScriptTypes.IDENTIFIER), TokenSet.create(AppleScriptTypes.COMMENT), TokenSet.create(AppleScriptTypes.STRING_LITERAL)); }
@Nullable @Override public WordsScanner getWordsScanner() { return new DefaultWordsScanner( new SoyLexer(), TokenSet.create(SoyTypes.IDENTIFIER_WORD), TokenSet.create(SoyTypes.COMMENT_BLOCK), TokenSet.EMPTY); }
@Nullable @Override public WordsScanner getWordsScanner() { return new DefaultWordsScanner( new ImpexLexerAdapter(), orSet( create(ImpexTypes.MACRO_NAME_DECLARATION), create(ImpexTypes.MACRO_DECLARATION), create(ImpexTypes.MACRO_USAGE) ), create(ImpexTypes.COMMENT), TokenSet.ANY ); }
@Nullable @Override public WordsScanner getWordsScanner() { return new DefaultWordsScanner(new YAMLFlexLexer(), TokenSet.create(YAMLTokenTypes.SCALAR_KEY), TokenSet.create(YAMLTokenTypes.COMMENT), TokenSet.create(YAMLTokenTypes.SCALAR_TEXT, YAMLTokenTypes.SCALAR_DSTRING, YAMLTokenTypes.SCALAR_STRING)); }
@NotNull public WordsScanner getWordsScanner() { return new DefaultWordsScanner(new LuaLexer(), LuaTokenTypes.IDENTIFIERS_SET, LuaTokenTypes.COMMENT_SET, LuaTokenTypes.LITERALS_SET) {{ setMayHaveFileRefsInLiterals(true); }}; }
@Nullable @Override public WordsScanner getWordsScanner() { return new DefaultWordsScanner( new SQFLexerAdapter(), SQFParserDefinition.IDENTIFIERS, SQFParserDefinition.COMMENTS, SQFParserDefinition.NUMBER_LITERALS ); }
@Nullable @Override public WordsScanner getWordsScanner() { return new DefaultWordsScanner(new ProtoLexerAdapter(), ProtoParserDefinition.IDENTIFIER_TOKEN_SET, ProtoParserDefinition.COMMENT_TOKEN_SET, ProtoParserDefinition.LITERAL_TOKEN_SET); }
@Override public WordsScanner getWordsScanner() { return new DefaultWordsScanner( new BuildLexer(LexerMode.SyntaxHighlighting), tokenSet(TokenKind.IDENTIFIER), tokenSet(TokenKind.COMMENT), tokenSet(TokenKind.STRING)); }
@Nullable @Override public WordsScanner getWordsScanner() { return new DefaultWordsScanner(SchemaFlexAdapter.newInstance(), SchemaParserDefinition.IDENTIFIERS, SchemaParserDefinition.COMMENTS, SchemaParserDefinition.LITERALS); }
@Nullable @Override public WordsScanner getWordsScanner() { return new DefaultWordsScanner( new CndLexerAdapter(), // TokenSet.EMPTY, TokenSet.create(CndTypes.NAMESPACE_NAME, CndTypes.NODE_TYPE_NAME, CndTypes.PROPERTY_NAME), TokenSet.create(CndTypes.COMMENT), TokenSet.EMPTY ); }
@Nullable @Override public WordsScanner getWordsScanner() { return new DefaultWordsScanner(new KLexerAdapter(), TokenSet.create(KTypes.USER_ID), TokenSet.EMPTY, TokenSet.EMPTY); }
@Nullable @Override public WordsScanner getWordsScanner() { return new DefaultWordsScanner(new TheRLexer(), TokenSet.create(TheRElementTypes.THE_R_IDENTIFIER), TokenSet.create(TheRParserDefinition.END_OF_LINE_COMMENT), TokenSet.create(TheRElementTypes.THE_R_STRING_LITERAL_EXPRESSION)); }
@Nullable @Override public WordsScanner getWordsScanner() { return new DefaultWordsScanner(new SmcLexerAdapter(), TokenSet.create(SmcTypes.TRANSITION), TokenSet.create(SmcTypes.LINE_COMMENT), TokenSet.EMPTY); }
@Nullable public WordsScanner getWordsScanner() { return new DefaultWordsScanner(new JFlexMergingLexer(), JFlexElementTypes.IDENTIFIERS, JFlexElementTypes.COMMENTS, JFlexElementTypes.REGEXP_SCOPE); }
@Nullable @Override public WordsScanner getWordsScanner() { return new DefaultWordsScanner(new XQueryLexer(), TokenSet.EMPTY, XQueryParserDefinition.COMMENTS, XQueryParserDefinition.STRINGS); }