Extend RET503 autofixes to "end of statement", including comments (#3324)

This commit is contained in:
Charlie Marsh 2023-03-03 14:15:55 -05:00 committed by GitHub
parent cdbe2ee496
commit eb42ce9319
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 167 additions and 18 deletions

View file

@ -16,8 +16,8 @@ pub struct Args {
pub fn main(args: &Args) -> Result<()> {
let contents = fs::read_to_string(&args.file)?;
for (_, tok, _) in lexer::lex(&contents, Mode::Module).flatten() {
println!("{tok:#?}");
for (start, tok, end) in lexer::lex(&contents, Mode::Module).flatten() {
println!("{start:#?} {tok:#?} {end:#?}");
}
Ok(())
}