Package org.intellij.erlang.parser

Examples of org.intellij.erlang.parser.ErlangLexer.start()


  public WordsScanner getWordsScanner() {
    return new WordsScanner() {
      @Override
      public void processWords(CharSequence fileText, Processor<WordOccurrence> processor) {
        ErlangLexer lexer = new ErlangLexer();
        lexer.start(fileText);
        IElementType tokenType;
        while ((tokenType = lexer.getTokenType()) != null) {
          //TODO process occurrences in string literals and comments
          if (tokenType == ErlangTypes.ERL_ATOM_NAME || tokenType == ErlangTypes.ERL_VAR) {
            int tokenStart = lexer.getTokenStart();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.