Skip to content

How to utilize existing javadoc parsing in a custom language plugin using grammar kit #447

Description

@budjb

Following the documentation and tutorial around creating a language plugin for Jetbrains IDE's, it's unclear how one might utilize the existing JavaDoc parser as a sub-parser while parsing a custom grammar. I've defined the grammar elements to parse a JavaDoc-style comment block into a token, and I've tried mixing in or extending the element for it with a custom ASTWrapperPsiElement class where I can invoke the JavaDoc parser. However, the getChildren function on that class is never called, and I'm not sure how else to wire that parser in based on the generated output of the lexer and parser.

Is this possible, and are there docs that cover this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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