PY-15074
authorIlya.Kazakevich <Ilya.Kazakevich@jetbrains.com>
Fri, 27 Feb 2015 15:26:43 +0000 (18:26 +0300)
committerIlya.Kazakevich <Ilya.Kazakevich@jetbrains.com>
Fri, 27 Feb 2015 15:26:43 +0000 (18:26 +0300)
JSonEmbedded changed to LazyParsable

json/src/com/intellij/json/JsonScriptContentProvider.java

index 6c621327b09a50a63bc31c3226fef262b22f8d24..3425307fe8bf1ffdcc45d40d37ada60d374a9fd9 100644 (file)
@@ -29,11 +29,11 @@ package com.intellij.json;/*
  * limitations under the License.
  */
 
-import com.intellij.embedding.EmbeddingElementType;
 import com.intellij.javascript.JSScriptContentProvider;
 import com.intellij.lang.HtmlScriptContentProvider;
 import com.intellij.lexer.Lexer;
 import com.intellij.psi.tree.IElementType;
+import com.intellij.psi.tree.ILazyParseableElementType;
 import org.jetbrains.annotations.Nullable;
 
 /**
@@ -60,7 +60,7 @@ public final class JsonScriptContentProvider implements HtmlScriptContentProvide
     return new JSScriptContentProvider().getHighlightingLexer();
   }
 
-  private static final class JsonEmbedded extends IElementType implements EmbeddingElementType {
+  private static final class JsonEmbedded extends ILazyParseableElementType {
     private JsonEmbedded() {
       super("JSON_EMBEDDED", JsonLanguage.INSTANCE);
     }