Skip to content

Parsing of function signatures to insert function parameters #1

@camieac

Description

@camieac

I have stumbled across PEG.js, a very nice looking parser in Javascript. It provides an example grammar for Javascript parsing, so we will probably start with support for Javascript files.

I idea is to gradually add support for more languages. The initial implementation should take this into account, so that we don't need to re-design the thing when adding additional language parsing support.

This issue covers the initial implementation of a Javascript Parser, fully integrated into the package. When a function comment is inserted, the parameters of the function signature below the cursor is parsed, and the parameters are inserted as part of the comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions