Package de.halirutan.mathematica.lexer

Examples of de.halirutan.mathematica.lexer.MathematicaLexer


  private static final Map<IElementType, TextAttributesKey> colors = new HashMap<IElementType, TextAttributesKey>();
  private final MathematicaLexer myLexer;

  public MathematicaSyntaxHighlighter() {
    myLexer = new MathematicaLexer();

    fillMap(colors, MathematicaSyntaxHighlighterColors.COMMENT, MathematicaElementTypes.COMMENT);
    fillMap(colors, MathematicaSyntaxHighlighterColors.STRING, MathematicaElementTypes.STRING_LITERAL);
    fillMap(colors, MathematicaSyntaxHighlighterColors.STRING, MathematicaElementTypes.STRING_LITERAL_BEGIN);
    fillMap(colors, MathematicaSyntaxHighlighterColors.STRING, MathematicaElementTypes.STRING_LITERAL_END);
View Full Code Here


*/
public class MathematicaFindUsageProvider implements FindUsagesProvider {
  @Nullable
  @Override
  public WordsScanner getWordsScanner() {
    return new DefaultWordsScanner(new MathematicaLexer(),
        TokenSet.create(MathematicaElementTypes.IDENTIFIER),
        MathematicaElementTypes.COMMENTS,
        MathematicaElementTypes.LITERALS);
  }
View Full Code Here

*/
public class MathematicaParserDefinition implements ParserDefinition {
  @NotNull
  @Override
  public Lexer createLexer(Project project) {
    return new MathematicaLexer();
  }
View Full Code Here

TOP

Related Classes of de.halirutan.mathematica.lexer.MathematicaLexer

Copyright © 2018 www.massapicom. 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.