Skip to content

False positive "Unresolved BNF References" for <<eof>> if parserUtilClass is set #350

@VladRassokhin

Description

@VladRassokhin

Example: https://github.com/ant-druha/intellij-powershell/blob/7d804d118095392cc7d7f8d97bb0c3135285ca3c/src/main/resources/PowerShell.bnf#L156

Given
parserUtilClass="com.intellij.plugin.powershell.lang.parser.PowerShellGeneratedParserUtil"

Inspection reports at e.g. line:
private configuration_block_recover ::= !(statement_terminators? ('configuration' | <<eof>> | SQBR_L| statement_stop_tokens))

It seems inspection resolves from parserUtilClass only, without looking up in com.intellij.lang.parser.GeneratedParserUtilBase.

Versions:
Build #IU-233.7784, built on September 21, 2023
org.jetbrains.idea.grammar (2022.3.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions