Slim injection directly in the tree
authorAndrey Vokin <andrey.vokin@jetbrains.com>
Fri, 21 Mar 2014 11:39:01 +0000 (15:39 +0400)
committerAndrey Vokin <andrey.vokin@jetbrains.com>
Fri, 21 Mar 2014 11:42:19 +0000 (15:42 +0400)
platform/platform-resources/src/META-INF/XmlPlugin.xml
xml/xml-psi-impl/src/com/intellij/lexer/EmbeddedTokenTypesProvider.java [new file with mode: 0644]

index 898b55aae3eafdefc26fbef6cb925c738fa3c17a..37464e9f8c1521977d1dabef9022833b1c801f8e 100644 (file)
@@ -67,6 +67,7 @@
 
     <extensionPoint name="xml.xmlTagRuleProvider" interface="com.intellij.xml.XmlTagRuleProvider"/>
     <extensionPoint name="html.embeddedTokenTypesProvider" interface="com.intellij.lexer.HtmlEmbeddedTokenTypesProvider"/>
+    <extensionPoint name="embeddedTokenTypesProvider" interface="com.intellij.lexer.EmbeddedTokenTypesProvider"/>
     <extensionPoint name="xml.html5SchemaProvider" interface="com.intellij.xml.Html5SchemaProvider"/>
     <extensionPoint name="xml.implicitIdRefProvider" interface="com.intellij.psi.impl.source.resolve.reference.impl.providers.ImplicitIdRefProvider"/>
 
diff --git a/xml/xml-psi-impl/src/com/intellij/lexer/EmbeddedTokenTypesProvider.java b/xml/xml-psi-impl/src/com/intellij/lexer/EmbeddedTokenTypesProvider.java
new file mode 100644 (file)
index 0000000..b009726
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2000-2014 JetBrains s.r.o.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.intellij.lexer;
+
+import com.intellij.openapi.extensions.ExtensionPointName;
+import com.intellij.psi.tree.IElementType;
+
+/**
+ * User: avokin
+ * Date: 14/03/14
+ */
+public interface EmbeddedTokenTypesProvider {
+  ExtensionPointName<EmbeddedTokenTypesProvider> EXTENSION_POINT_NAME = ExtensionPointName.create("com.intellij.embeddedTokenTypesProvider");
+
+  String getName();
+  IElementType getElementType();
+}