package org.coffeebrew.lang.parser;

import com.intellij.lang.ASTNode;
import com.intellij.lang.PsiBuilder;
import com.intellij.lang.PsiParser;
import com.intellij.psi.impl.source.tree.PlainTextFileElement;
import com.intellij.psi.tree.IElementType;
import org.jetbrains.annotations.NotNull;

/**
 * Parser implementation for CoffeeScript language support
 *
 * @author Michael Kessler
 * @since 0.1.0
 */
public class CoffeeScriptParser implements PsiParser {

  @NotNull
  public ASTNode parse(IElementType root, PsiBuilder builder) {
    return new PlainTextFileElement(builder.getOriginalText());
  }

}

@@ -133,24 +133,69 @@
 .PsiParser;%0A
+import com.intellij.psi.PlainTextTokenTypes;%0A
 import com.i
@@ -232,27 +232,26 @@
 lainText
-FileElement
+ASTFactory
 ;%0Aimport
@@ -602,20 +602,64 @@
 Text
-FileElement(
+ASTFactory().createLeaf(PlainTextTokenTypes.PLAIN_TEXT, 
 buil

Fix wrong AST Node parsing on idea-x