mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
JS dialect parser definitions and indices moved to js-psi-impl and registered
This commit is contained in:
@@ -267,6 +267,10 @@ public class CoreApplicationEnvironment {
|
||||
});
|
||||
}
|
||||
|
||||
public void registerParserDefinition(Language language, ParserDefinition parserDefinition) {
|
||||
addExplicitExtension(LanguageParserDefinitions.INSTANCE, language, parserDefinition);
|
||||
}
|
||||
|
||||
public <T> void addExplicitExtension(final FileTypeExtension<T> instance, final FileType fileType, final T object) {
|
||||
instance.addExplicitExtension(fileType, object);
|
||||
Disposer.register(myParentDisposable, new Disposable() {
|
||||
|
||||
Reference in New Issue
Block a user