News for hackers. Stuff that matters.
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.

Re:Don’t underestimate grep-based code scanning by jandrese on Wednesday August 07, 2019 @04:06PM (#20638358)
You do have to be more liberal with '\s*' or '\s+' instead of just ' ' in your patterns, that is true.