ThrowTheSwitch/CMock — pull request #36 by jlesage (2014-05-22 13:25:18+00:00)
Title: Adjust source file to be able to properly strip macros when using strippables

Usually, characters following the pattern to strip are expected to be non-alphanumeric. However, alphanumeric characters should be allowed if last character of the pattern to strip is non-alphanumeric.

The problem I got is when we want to strip a MACRO() and this macro is followed by an alphanumeric character. For example, if we add `IFRPC_ALEN\s*\(+.*?\)+` to 'strippables':

`int MyFunction( IFRPC_ALEN(4) int param)`

would be correctly stripped, but not

`int MyFunction( IFRPC_ALEN(4)int param)`

because the macro is followed by an alphanumeric character.

To fix the issue, we are adjusting the source code to make sure a parenthesis `)` is followed by a space. The other way to fix the issue would be to adjust the regex expression by adding `(?<=\W)`, but this is not supported by ruby 1.8.7.