mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Correctly derive the language from root file type (a case of XML/HTML elements mix)
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ public class DataLanguageBlockWrapper implements ASTBlock, BlockEx, BlockWithPar
|
||||
if (node != null) {
|
||||
final PsiElement psi = node.getPsi();
|
||||
if (psi != null) {
|
||||
language = psi.getLanguage();
|
||||
language = psi.getContainingFile().getLanguage();
|
||||
}
|
||||
}
|
||||
myLanguage = language;
|
||||
|
||||
Reference in New Issue
Block a user