mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
[java-highlighting] IDEA-357214 'Module' is highlighted as an error when module name is expected
- fix typo of comment GitOrigin-RevId: 9d32a5be900da849d90e23c015b4bba273d6fd88
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bb07f96573
commit
194e42f31f
@@ -204,7 +204,7 @@ public class BasicFileParser {
|
||||
isOk = myParser.getReferenceParser().parseImportCodeReference(builder, isStatic);
|
||||
}
|
||||
|
||||
//if it is `module` it should expect or `;` or `identifier`
|
||||
//if it is `module` we should expect either `;` or `identifier`
|
||||
if (isOk && !isModule && !isStatic && builder.getTokenType() != JavaTokenType.SEMICOLON &&
|
||||
PsiKeyword.MODULE.equals(identifierText)) {
|
||||
BasicJavaParserUtil.error(builder, JavaPsiBundle.message("expected.identifier.or.semicolon"));
|
||||
|
||||
Reference in New Issue
Block a user