Re:Don’t underestimate grep-based code scanning
by jandrese on Wednesday August 07, 2019 @03:52PM
(#20638214)
Isn't this what the /s flag is for in your regex? Assuming you are also using /x of course.
Re:Don’t underestimate grep-based code scanning
by paulddraper on Wednesday August 07, 2019 @03:53PM
(#20638229)
Sort of. But there's indentation, so I need repetition.
And if I'm doing whitespace repetition, there's no great advantage in an autoformatter.
But I do love auto-formatters. (I'm doing web dev at the moment, so Prettier.) It is freeing to not worry about spacing, line breaks, parens, etc.
All I have to do is give the computer a valid AST and it does The Right Thing.