-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor handling of comments (#2371)
This rewrite part of the code that parses and formats comments to remove repeated or inconsistent code. One function interprets comments: Cmt.decode. It returns a richer type that allow to implement formatting as it was before. The normalization is changed to use that, no more is_docstring and normalization of indentation is now consistent. This fixes normalization problem for comments parsed as doc and cinaps comments. Improvements are: - Asterisk-prefixed comments are formatted specially. The code was present but was never called. - Commented-out code is no longer wrapped. - Fix a bug where formatted cinaps comments wouldn't pass normalization. Co-authored-by: Guillaume Petiot <guillaume@tarides.com>
- Loading branch information
Showing
85 changed files
with
1,162 additions
and
427 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.