mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
move IntelliLang-js to ultimate sources
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$/js-support">
|
||||
<sourceFolder url="file://$MODULE_DIR$/js-support" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module" module-name="IntelliLang" />
|
||||
<orderEntry type="module" module-name="lang-api" />
|
||||
<orderEntry type="module" module-name="JavaScriptLanguage" />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
-32
@@ -1,32 +0,0 @@
|
||||
package com.intellij.plugins.intelliLang.inject;
|
||||
|
||||
import com.intellij.lang.javascript.patterns.JSPatterns;
|
||||
import com.intellij.lang.javascript.psi.JSElement;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import org.intellij.plugins.intelliLang.inject.AbstractLanguageInjectionSupport;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author Eugene.Kudelevsky
|
||||
*/
|
||||
public class JSLanguageInjectionSupport extends AbstractLanguageInjectionSupport {
|
||||
@NonNls private static final String SUPPORT_ID = "js";
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public String getId() {
|
||||
return SUPPORT_ID;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Class[] getPatternClasses() {
|
||||
return new Class[] {JSPatterns.class};
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean useDefaultInjector(PsiElement host) {
|
||||
return host instanceof JSElement;
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component name="LanguageInjectionConfiguration">
|
||||
<injection language="SQLite" injector-id="js">
|
||||
<display-name>HTML5 SQL Database (SQLite)</display-name>
|
||||
<place><![CDATA[jsLiteralExpression().and(jsArgument("executeSql", 0))]]></place>
|
||||
</injection>
|
||||
<injection language="SQLite" injector-id="js">
|
||||
<display-name>flash.data (SQLite)</display-name>
|
||||
<place><![CDATA[jsLiteralExpression().and(asAssignedValue("text", "flash.data.SQLStatement"))]]></place>
|
||||
<place><![CDATA[jsLiteralExpression().and(asAssignedValue("text", "*", "dbStatement"))]]></place>
|
||||
<place><![CDATA[jsLiteralExpression().and(asAssignedValue("text", "*", "statement", "st").withText(string().matchesBrics(".*(((SELECT|DELETE) .*FROM)|(INSERT .*INTO)|(UPDATE .*SET)|(CREATE +(TABLE|INDEX))) .*")))]]></place>
|
||||
</injection>
|
||||
</component>
|
||||
Reference in New Issue
Block a user