<NME> ElmIncrementalLexer.kt
<BEF> package org.elm.lang.core.lexer

/**
 * A raw lexer over the lexer generated by Flex. The purpose of this
 * lexer is to provide basic lexing (no special whitespace logic)
 * to be used in places where a state-less (incremental) lexer is
 * needed by IntelliJ (syntax highlighting).
 *
 * @see ElmLayoutLexer
 */
class ElmIncrementalLexer : ElmLexer()

<MSG> Stop depending on GrammarKit to generate the lexer adapter

A recent change in GrammarKit stopped producing the LexerAdapter
subclass.

<DFF> @@ -1,11 +1,14 @@
 package org.elm.lang.core.lexer
 
+import com.intellij.lexer.FlexAdapter
+
 /**
  * A raw lexer over the lexer generated by Flex. The purpose of this
- * lexer is to provide basic lexing (no special whitespace logic)
- * to be used in places where a state-less (incremental) lexer is
- * needed by IntelliJ (syntax highlighting).
+ * lexer is to provide basic lexing (no special whitespace logic).
+ * It can be used in places where a state-less (incremental) lexer is
+ * needed by IntelliJ (syntax highlighting), and it can be used as the
+ * foundation for a stateful lexer.
  *
  * @see ElmLayoutLexer
  */
-class ElmIncrementalLexer : ElmLexer()
+class ElmIncrementalLexer: FlexAdapter(_ElmLexer())

Stop depending on GrammarKit to generate the lexer adapter