Rewrite file_source and file_parser #102
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
help wanted
Extra attention is needed
Milestone
Feature/behavior summary
These two files are large, complicated, and poorly documented. The desired functionality is actually very simple:
Request attributes
Related issues
No response
Solution description
file_source
with a simpler approach, probably by re-using existing lexers.file_parser
to use a simpler representation of theline_info
andLineGroup
objects.Additional notes
We should explore implementing this functionality with
pygments
; it should be possible to iterate through tokens and discard the ones we don't want. This would also open up the opportunity to rewrite other parts of Code Base Investigator to usepygments
tokens.If we do use
pygments
, we'd be introducing a new dependency.The text was updated successfully, but these errors were encountered: