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.
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.