do not inject into java numbers [once again]

This commit is contained in:
Gregory.Shrago
2013-07-08 22:51:54 +04:00
parent aea001abfc
commit 9870d29508
@@ -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;