use of com.intellij.psi.templateLanguages.TemplateDataLanguagePatterns in project intellij-plugins by JetBrains.
the class HbParserTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
final MutablePicoContainer appContainer = getApplication().getPicoContainer();
appContainer.registerComponentInstance(PropertiesComponent.class.getName(), PropertiesComponentImpl.create());
appContainer.registerComponentInstance(TemplateDataLanguageMappings.class.getName(), new TemplateDataLanguageMappings(getProject()));
appContainer.registerComponentInstance(TemplateDataLanguagePatterns.class.getName(), new TemplateDataLanguagePatterns());
addExplicitExtension(LanguageParserDefinitions.INSTANCE, HbLanguage.INSTANCE, new HbParseDefinition());
}
use of com.intellij.psi.templateLanguages.TemplateDataLanguagePatterns in project Perl5-IDEA by Camelcade.
the class PerlParserTestBase method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
registerApplicationService(TemplateDataLanguageMappings.class, new TemplateDataLanguageMappings(getProject()));
registerApplicationService(TemplateDataLanguagePatterns.class, new TemplateDataLanguagePatterns());
addExplicitExtension(LanguageParserDefinitions.INSTANCE, PerlLanguage.INSTANCE, new PerlParserDefinition());
addExplicitExtension(LanguageParserDefinitions.INSTANCE, PodLanguage.INSTANCE, new PodParserDefinition());
registerComponentInstance(myProject, PerlNamesCache.class, new PerlNamesCache(myProject));
registerExtensionPoint(PerlParserExtension.EP_NAME, PerlParserExtension.class);
registerExtension(PerlParserExtension.EP_NAME, new MooseParserExtension());
registerExtension(PerlParserExtension.EP_NAME, new PerlSwitchParserExtensionImpl());
registerExtension(PerlParserExtension.EP_NAME, new ClassAccessorParserExtension());
registerExtension(PerlParserExtension.EP_NAME, new MojoParserExtension());
PerlParserExtensions parserExtensions = new PerlParserExtensions();
registerComponentInstance(ApplicationManager.getApplication(), PerlParserExtensions.class, parserExtensions);
parserExtensions.initComponent();
PerlPackageProcessorEP.EP.addExplicitExtension("constant", new ConstantProcessor());
PerlPackageProcessorEP.EP.addExplicitExtension("vars", new VarsProcessor());
PerlPackageProcessorEP.EP.addExplicitExtension("Exception::Class", new ExceptionClassProcessor());
myProject.registerService(PerlSharedSettings.class, new PerlSharedSettings(getProject()));
}
use of com.intellij.psi.templateLanguages.TemplateDataLanguagePatterns in project idea-handlebars by dmarcotte.
the class HbParserTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
final MutablePicoContainer appContainer = getApplication().getPicoContainer();
appContainer.registerComponentInstance(PropertiesComponent.class.getName(), new PropertiesComponentStub());
appContainer.registerComponentInstance(TemplateDataLanguageMappings.class.getName(), new TemplateDataLanguageMappings(getProject()));
appContainer.registerComponentInstance(TemplateDataLanguagePatterns.class.getName(), new TemplateDataLanguagePatterns());
addExplicitExtension(LanguageParserDefinitions.INSTANCE, HbLanguage.INSTANCE, new HbParseDefinition());
}
Aggregations