mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not inject into java numbers [once again]
This commit is contained in:
+2
-1
@@ -25,7 +25,8 @@ public class CommentLanguageInjector implements MultiHostInjector {
|
||||
|
||||
public void getLanguagesToInject(@NotNull final MultiHostRegistrar registrar, @NotNull final PsiElement context) {
|
||||
PsiLanguageInjectionHost host = (PsiLanguageInjectionHost)context;
|
||||
final ElementManipulator<PsiLanguageInjectionHost> manipulator = ElementManipulators.getManipulator(host);
|
||||
if (!host.isValidHost()) return;
|
||||
ElementManipulator<PsiLanguageInjectionHost> manipulator = ElementManipulators.getManipulator(host);
|
||||
if (manipulator == null) return;
|
||||
TextRange rangeInElement = manipulator.getRangeInElement(host);
|
||||
if (rangeInElement.isEmpty()) return;
|
||||
|
||||
Reference in New Issue
Block a user