Closed sdsen closed 1 year ago
This will entail extending the following function: https://github.com/sdsen/opened_extraction/blob/main/src/remove_c_style_comments.py which has regex to identify multi-line, multi-format comments. You will need a modified regex which given a buffer returns array of inline comments, ideally keyed with line number in source_file.
Code in #79
Is your feature request related to a problem? Please describe. The comment stub should store all code line specific comments along with line number where the comment is found. As it is not possible to identify lines which correspond to the comment, we will not attempt to determine the same. Describe the solution you'd like Modify comment_remover function to identify and save the in-code comments along with their place of occurance.