cargo-specification icon indicating copy to clipboard operation
cargo-specification copied to clipboard

support different languages comments

Open mimoo opened this issue 3 years ago • 0 comments

First, I think we should have some good defaults when parsing files based on the file extension. Perhaps we can use this: https://docs.rs/comment-parser/latest/comment_parser/

Second, I think you should still be able to customize how the spec comment looks like:

[config]
custom_comments = [[".ml", "(*!", "*)"], [".py", "#!"]]

mimoo avatar Mar 03 '22 04:03 mimoo