resolves #792 allow inline macros with custom regexp to be matched