I have a text file used by Delphi full of variables written like $(variablename). The file also contains macros written like %macroname%. Now when I execute a Replace Variables action on the file I have to escape all the $(xxx) variables to keep them untouched in case the variable name matches one of the FinalBuilder ones.
Can you please add an option to limit the variable replacement to those written in the %xxx% style?
At first I thought it would be simple, add another overload and pass an options object in - 4hrs and 2 false starts later… there are multiple layers of abstraction before we get to the parser (each layer adds functionality) - in then I gave up battling delphi’s overload resolution issues and added a new method and an options type at each level to drill the options down to the parser - the actual change to the parser was just a few lines.
While I was at it, I added an option to ignore % expressions too - because why not