Coding Standards? Write a Macro!
So there's this weird standard my new client has implemented. They love to see things like...
//foreach
//for
//if
//else
//Function_Name
//try
//catch
Yeah, it may seem a little anal. Sure. So let's write a macro to do this sort of thing automatically! I've got a regex which goes through the code and locates all of the hanging } symbols. It looks like the following fragment, and we use it pretty extensivly right before code review to make sure our code's all good.
\}$
Thing is, how would one augment that regex or implement a macro to do this sort of thing? Any suggestions? Can't seem to find anything out there to help with this little tidbit!