Skip to content

Commit

Permalink
Fix incorrect OuterElementType in eex.lexer.TemplateData
Browse files Browse the repository at this point in the history
Fixes #1992

The EEx IElementType needs to use OuterLanguageElementType instead of
the direct eex.psi.TokenType.
  • Loading branch information
hurricup authored and KronicDeth committed Jun 30, 2021
1 parent 84e96e7 commit cece892
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/org/elixir_lang/eex/lexer/TemplateData.java
Expand Up @@ -3,6 +3,8 @@
import com.intellij.lexer.Lexer;
import com.intellij.lexer.MergingLexerAdapterBase;
import com.intellij.psi.tree.IElementType;
import com.intellij.psi.tree.OuterLanguageElementType;
import org.elixir_lang.eex.Language;
import org.jetbrains.annotations.NotNull;

import static org.elixir_lang.eex.psi.Types.DATA;
Expand All @@ -11,7 +13,7 @@
* Merges together all EEx opening, body, and closing tokens into a single EEx type
*/
public class TemplateData extends MergingLexerAdapterBase {
public static final IElementType EEX = new org.elixir_lang.eex.psi.TokenType("EEx");
public static final IElementType EEX = new OuterLanguageElementType("EEx", Language.INSTANCE);

@NotNull
private final MergeFunction mergeFunction = new MergeFunction();
Expand Down

0 comments on commit cece892

Please sign in to comment.